summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@digia.com>2016-04-21 10:26:48 +0200
committerAndy Shaw <andy.shaw@theqtcompany.com>2016-04-21 10:17:15 +0000
commit26f7894dae87ef2dd6cf596decf645d1c877c950 (patch)
tree7827c8254544eebe21754bf5f1f6656b7bca76dd /examples
parent01e52200e2a76ec51c3bb9710617ac0c249a78bc (diff)
downloadqtquickcontrols-26f7894dae87ef2dd6cf596decf645d1c877c950.tar.gz
Specify the full path to the Flat style when static so it is found
Change-Id: I4346044debdf2301f221186b60798307c563c336 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/quick/extras/flat/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/quick/extras/flat/main.cpp b/examples/quick/extras/flat/main.cpp
index 8faafdca..57f48cda 100644
--- a/examples/quick/extras/flat/main.cpp
+++ b/examples/quick/extras/flat/main.cpp
@@ -47,7 +47,12 @@ int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
if (qgetenv("QT_QUICK_CONTROLS_STYLE").isEmpty()) {
+#ifdef QT_STATIC
+ // Need a full path to find the style when built statically
+ qputenv("QT_QUICK_CONTROLS_STYLE", ":/ExtrasImports/QtQuick/Controls/Styles/Flat");
+#else
qputenv("QT_QUICK_CONTROLS_STYLE", "Flat");
+#endif
}
QQmlApplicationEngine engine;
engine.load(QUrl("qrc:/main.qml"));