-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
30 lines (27 loc) · 806 Bytes
/
Copy pathmain.cpp
File metadata and controls
30 lines (27 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <QMainWindow>
#include <QHeaderView>
#include <QApplication>
#include <QTranslator>
#include <QLocale>
#include "GUI/mainwindow.h"
#include "QDir"
int main(int argc, char *argv[])
{
QByteArray envVarValue = "96";
qputenv("QT_FONT_DPI", envVarValue);
QApplication a(argc, argv);
a.setWindowIcon(QIcon(":/images/images/images/logo4.png"));
// QTranslator translator;
// if (translator.load("../KURSOVA_SPZ/languages/Ukrainian_ua"))
// {
// a.installTranslator(&translator);
// }
// else
// {
// qDebug() << "Не вдалося завантажити мову";
// qDebug() << "Translation file path:" << QDir::current().absoluteFilePath("languages/Ukrainian_ua.qm");
// }
MainWindow w;
w.show();
return a.exec();
}