예제 #1
0
        private void open()
        {
            QFileDialog dialog = new QFileDialog();
            dialog.setAcceptMode(QFileDialog.AcceptMode.AcceptOpen);
            dialog.setFileMode(QFileDialog.FileMode.DirectoryOnly);

            dialog.setModal(true);
            dialog.show();
            if (dialog.exec() != 0)
            {
                string jsFunc = RunDirectoryScan((string)dialog.selectedFiles().get(0));
                webView.page().mainFrame().evaluateJavaScript(jsFunc);
            }
        }
예제 #2
0
        private void open()
        {
            QFileDialog dialog = new QFileDialog();
            dialog.setAcceptMode(QFileDialog.AcceptMode.AcceptOpen);
            dialog.setFileMode(QFileDialog.FileMode.DirectoryOnly);

            dialog.setModal(true);
            dialog.show();
            if (dialog.exec() != 0)
            {
                RunDirectoryScan((string)dialog.selectedFiles().get(0));

            }
        }