Starts the Qt model_viewer application.
More...
#include "model_view.hpp"
#include <QApplication>
#include <QFile>
Go to the source code of this file.
|
| int | main (int argc, char **argv) |
| | Application entry point for the MXMOD model viewer launcher.
|
Starts the Qt model_viewer application.
Definition in file main.cpp.
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |
Application entry point for the MXMOD model viewer launcher.
- Parameters
-
| argc | Argument count forwarded to QApplication. |
| argv | Argument vector forwarded to QApplication. |
- Returns
- Qt application exit code.
Definition at line 17 of file main.cpp.
17 {
18 QApplication app(argc, argv);
19
20 app.setApplicationName("Professional Model Viewer");
21 app.setOrganizationName("MXModel");
22 app.setOrganizationDomain("mxmodel.io");
23 app.setApplicationVersion("1.0.0");
24
25 QFile styleFile(":/styles/data/stylesheet.qss");
26 if (styleFile.open(QFile::ReadOnly)) {
27 QString style = QLatin1String(styleFile.readAll());
28 app.setStyleSheet(style);
29 styleFile.close();
30 }
31
34
35 return app.exec();
36}
Main application window for the MXMOD model viewer launcher.