Files
IfcOpenShell/src/qtviewer/main.cpp
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
505 B
C++
Raw Normal View History

#include "MainWindow.h"
2012-06-22 12:28:34 +00:00
#include <QApplication>
2012-06-22 12:28:34 +00:00
int main(int argc, char *argv[])
2012-06-22 12:28:34 +00:00
{
QApplication app(argc, argv);
2012-06-22 12:28:34 +00:00
2023-09-02 03:38:28 +05:30
// Set the icon in the window title-bar on mswindows
// and dock icon on macos.
// "icon" alias defined in .qrc file
QIcon appIcon(":/icon");
app.setWindowIcon(appIcon);
2023-09-02 03:38:28 +05:30
// File icon set with:
// mswindows - .rc file
// macos - .icns file (using CMake)
2023-09-01 14:58:18 +05:30
2023-09-05 18:23:49 +05:30
qreal dpiScale = app.devicePixelRatio();
MainWindow window(dpiScale);
2023-09-01 14:58:18 +05:30
2012-06-22 12:28:34 +00:00
window.show();
return app.exec();
}