2023-09-05 17:51:25 +05:30
|
|
|
#include "MainWindow.h"
|
2012-06-22 12:28:34 +00:00
|
|
|
|
2023-08-12 02:42:11 +05:30
|
|
|
#include <QApplication>
|
2012-06-22 12:28:34 +00:00
|
|
|
|
2023-08-12 02:42:11 +05:30
|
|
|
int main(int argc, char *argv[])
|
2012-06-22 12:28:34 +00:00
|
|
|
{
|
2023-08-12 02:42:11 +05:30
|
|
|
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.
|
2023-09-02 02:29:52 +05:30
|
|
|
// "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();
|
|
|
|
|
|
2023-09-05 17:51:25 +05:30
|
|
|
MainWindow window(dpiScale);
|
2023-09-01 14:58:18 +05:30
|
|
|
|
2012-06-22 12:28:34 +00:00
|
|
|
window.show();
|
|
|
|
|
|
|
|
|
|
return app.exec();
|
|
|
|
|
}
|