Beispiel #1
0
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");
}
Beispiel #2
0
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);
}