sl@0
|
1 |
/*
|
sl@0
|
2 |
#include <QApplication>
|
sl@0
|
3 |
#include <QQmlApplicationEngine>
|
sl@0
|
4 |
|
sl@0
|
5 |
int main(int argc, char *argv[])
|
sl@0
|
6 |
{
|
sl@0
|
7 |
QApplication app(argc, argv);
|
sl@0
|
8 |
|
sl@0
|
9 |
QQmlApplicationEngine engine;
|
sl@0
|
10 |
engine.load(QUrl(QStringLiteral("qrc:///main.qml")));
|
sl@0
|
11 |
|
sl@0
|
12 |
return app.exec();
|
sl@0
|
13 |
}
|
sl@0
|
14 |
*/
|
sl@0
|
15 |
|
sl@0
|
16 |
#include "qtquickcontrolsapplication.h"
|
sl@0
|
17 |
#include <QtQml/QQmlApplicationEngine>
|
sl@0
|
18 |
#include <QPalette>
|
sl@0
|
19 |
|
sl@0
|
20 |
int main(int argc, char *argv[])
|
sl@0
|
21 |
{
|
sl@0
|
22 |
QtQuickControlsApplication app(argc, argv);
|
sl@0
|
23 |
//Specifying the following properties was needed for persistent settings to work
|
sl@0
|
24 |
app.setOrganizationName("Slions");
|
sl@0
|
25 |
app.setOrganizationDomain("Slions.com");
|
sl@0
|
26 |
app.setApplicationName("MiniDisplay Manager");
|
sl@0
|
27 |
|
sl@0
|
28 |
//Override system palette
|
sl@0
|
29 |
//QPalette customPalette = app.palette();
|
sl@0
|
30 |
//customPalette.setColor(QPalette::Window, QColor("red"));
|
sl@0
|
31 |
//customPalette.setColor(QPalette::Base, QColor("red"));
|
sl@0
|
32 |
//customPalette.setColor(QPalette::AlternateBase, QColor("red"));
|
sl@0
|
33 |
//app.setPalette(customPalette);
|
sl@0
|
34 |
//
|
sl@0
|
35 |
|
sl@0
|
36 |
QQmlApplicationEngine engine(QUrl("qrc:///main.qml"));
|
sl@0
|
37 |
return app.exec();
|
sl@0
|
38 |
}
|