bool ViewPortInterface::showHelpDialog() { QFile help_file(HELP_DIALOG_FILE); if (!help_file.open(QIODevice::ReadOnly)) return false; QString text = help_file.readAll(); emit this->helpDialogCalled(text); return true; }
void showHelp() { QFile help_file(":/help.html"); if (!help_file.open(QIODevice::ReadOnly)) return; QString help = help_file.readAll(); help_file.close(); qInformal() << help.remove(QRegExp("(<[^>]+>)|\t\b")); // Clearing HTML tags. qInformal() << "Version:" << __QSTL_VER__; }