sl@0: /* sl@0: #include sl@0: #include sl@0: sl@0: int main(int argc, char *argv[]) sl@0: { sl@0: QApplication app(argc, argv); sl@0: sl@0: QQmlApplicationEngine engine; sl@0: engine.load(QUrl(QStringLiteral("qrc:///main.qml"))); sl@0: sl@0: return app.exec(); sl@0: } sl@0: */ sl@0: sl@0: #include "qtquickcontrolsapplication.h" sl@0: #include sl@0: #include sl@0: sl@0: int main(int argc, char *argv[]) sl@0: { sl@0: QtQuickControlsApplication app(argc, argv); sl@0: //Specifying the following properties was needed for persistent settings to work sl@0: app.setOrganizationName("Slions"); sl@0: app.setOrganizationDomain("Slions.com"); sl@0: app.setApplicationName("MiniDisplay Manager"); sl@0: sl@0: //Override system palette sl@0: //QPalette customPalette = app.palette(); sl@0: //customPalette.setColor(QPalette::Window, QColor("red")); sl@0: //customPalette.setColor(QPalette::Base, QColor("red")); sl@0: //customPalette.setColor(QPalette::AlternateBase, QColor("red")); sl@0: //app.setPalette(customPalette); sl@0: // sl@0: sl@0: QQmlApplicationEngine engine(QUrl("qrc:///main.qml")); sl@0: return app.exec(); sl@0: }