21int main(
int argc,
char* argv[])
24 QSurfaceFormat::setDefaultFormat(QVTKOpenGLNativeWidget::defaultFormat());
26 auto myOutputWindow = vtkSmartPointer<VtkConsoleOutputWindow>::New();
27 vtkOutputWindow::SetInstance(myOutputWindow);
29 QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
30 QApplication a(argc, argv);
31 QApplication::setApplicationName(
"OpenGeoSys - Data Explorer");
32 QApplication::setApplicationVersion(
34 QApplication::setOrganizationName(
"OpenGeoSys Community");
35 QApplication::setOrganizationDomain(
"opengeosys.org");
36 setlocale(LC_NUMERIC,
"C");
37 QLocale::setDefault(QLocale::German);
38 auto w = std::make_unique<MainWindow>();
39 w->setWindowTitle(w->windowTitle() +
" - " +
41 if (QCoreApplication::arguments().size() > 1)
43 w->loadFileOnStartUp(QCoreApplication::arguments().at(1));
46 int returncode = QApplication::exec();
int main(int argc, char *argv[])