void MainWindow::on_about() { QCoreApplication * app = QCoreApplication::instance(); QMessageBox::about(this, app->applicationName(), app->applicationName() + ": example of Qt using marnav\n\nVersion: " + app->applicationVersion() + "\n\nSee file: LICENSE"); }
void MainWindow::on_about() { QCoreApplication* app = QCoreApplication::instance(); QString version; if (app) { version = QString("\n\nVersion: ") + app->applicationVersion(); } QMessageBox::about(this, "qtnavigator", "qtnavigator : navigation software" + version); }