The rtkget_qt application is the graphical user interface for RTKGET, built using the Qt framework. The entry point initializes a QApplication instance, loads internationalization (i18n) translation files from the internal resource path :/i18n/, and displays the MainForm window. If translation files fail to load, a debug message is emitted, but the application continues to run using default locales.
// The application entry point initializes the Qt environment,
// loads translations, and shows the MainForm.
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QTranslator translator;
bool ok = translator.load(QLocale(), "rtklib", "_", ":/i18n/");
if (!ok)
qDebug("Failed to open translation file.");
a.installTranslator(&translator);
MainForm w(NULL);
w.show();
return a.exec();
}