-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
40 lines (35 loc) · 829 Bytes
/
main.cpp
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
31
32
33
34
35
36
37
38
39
40
#include "mainwindow.h"
#include <QApplication>
QString windowSheet = R"(
QPushButton {
background-color: #4CAF50;
border: none;
color: white;
padding: 10px 20px;
font-size: 16px;
border-radius: 5px;
transition: background-color 0.3s;
}
QPushButton:hover {
background-color: #45a049;
}
QLabel {
font-size: 18px;
color: #333;
font-family: Arial, sans-serif;
padding: 5px;
}
)";
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
a.setStyleSheet(windowSheet);
MainWindow w;
w.show();
QQmlApplicationEngine engine;
// engine.load(QUrl(QStringLiteral("qrc:/mapApp.qml")));
// if (engine.rootObjects().isEmpty()) {
// return -1;
// }
return a.exec();
}