Putting our marquee control on our display.
2 #include <QApplication>
3 #include <QQmlApplicationEngine>
5 int main(int argc, char *argv[])
7 QApplication app(argc, argv);
9 QQmlApplicationEngine engine;
10 engine.load(QUrl(QStringLiteral("qrc:///main.qml")));
16 #include "qtquickcontrolsapplication.h"
17 #include <QtQml/QQmlApplicationEngine>
20 int main(int argc, char *argv[])
22 QtQuickControlsApplication app(argc, argv);
23 //Specifying the following properties was needed for persistent settings to work
24 app.setOrganizationName("Slions");
25 app.setOrganizationDomain("Slions.com");
26 app.setApplicationName("MiniDisplay Manager");
28 //Override system palette
29 //QPalette customPalette = app.palette();
30 //customPalette.setColor(QPalette::Window, QColor("red"));
31 //customPalette.setColor(QPalette::Base, QColor("red"));
32 //customPalette.setColor(QPalette::AlternateBase, QColor("red"));
33 //app.setPalette(customPalette);
36 QQmlApplicationEngine engine(QUrl("qrc:///main.qml"));