MXVK Vulkan Framework 0.24.0
C++20 Vulkan rendering framework for practical 2D and 3D application development with SDL3.
Loading...
Searching...
No Matches
main.cpp File Reference

Starts the Qt model_viewer application. More...

#include "model_view.hpp"
#include <QApplication>
#include <QFile>

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 Application entry point for the MXMOD model viewer launcher.

Detailed Description

Starts the Qt model_viewer application.

Definition in file main.cpp.

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

Application entry point for the MXMOD model viewer launcher.

Parameters
argcArgument count forwarded to QApplication.
argvArgument 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
33 viewer.show();
34
35 return app.exec();
36}
Main application window for the MXMOD model viewer launcher.