本文整理汇总了C++中Scanner::show方法的典型用法代码示例。如果您正苦于以下问题:C++ Scanner::show方法的具体用法?C++ Scanner::show怎么用?C++ Scanner::show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Scanner
的用法示例。
在下文中一共展示了Scanner::show方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: runScanner
void ScannerPage::runScanner ()
{
QString s;
config.getData(Config::ScannerPath, s);
QString s2("*");
SymbolDialog *dialog = new SymbolDialog(this,
s,
s,
s2,
Q3FileDialog::ExistingFiles);
dialog->setCaption(tr("Select scanners to run"));
int rc = dialog->exec();
if (rc == QDialog::Accepted)
{
QStringList l = dialog->selectedFiles();
int loop;
QDir dir;
for (loop = 0; loop < (int) l.count(); loop++)
{
QFileInfo fi(l[loop]);
Scanner *sdialog = new Scanner(fi.fileName(), chartIndex);
connect(sdialog, SIGNAL(exitScanner()), this, SLOT(refreshList()));
connect(sdialog, SIGNAL(message(QString)), this, SIGNAL(message(QString)));
sdialog->show();
sdialog->scan();
delete sdialog;
}
}
delete dialog;
}
示例2: openScanner
void ScannerPage::openScanner ()
{
Scanner *dialog = new Scanner(list->currentText(), chartIndex);
connect(dialog, SIGNAL(exitScanner()), this, SLOT(refreshList()));
connect(dialog, SIGNAL(message(QString)), this, SIGNAL(message(QString)));
connect(dialog, SIGNAL(scanComplete()), this, SIGNAL(refreshGroup()));
dialog->show();
}