Exemplo n.º 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");
}
Exemplo n.º 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);
}