qmlscene and Qt Quick Controls 2: styling
-
Hello, i noticed that in Qt 5.8 beta qmlscene preview util supports Qt Quick Controls 2 but i don't managed how to apply styling (Universal, Material), is it possible and how?
-
@morte Perhaps setting QT_QUICK_CONTROLS_STYLE environment variable.
-
@p3c0 said in qmlscene and Qt Quick Controls 2: styling:
@morte Perhaps setting QT_QUICK_CONTROLS_STYLE environment variable.
im tried setting system-wide environment variable and QtCreator environment option for qmlscene both has no effect
-
@morte Are you sure you are setting it correctly ? I just tried it with Qt 5.7 and it works. Can you try the same with Qt 5.7 ?
export QT_QUICK_CONTROLS_STYLE=universal; /opt/Qt5.7.0/5.7/gcc_64/bin/qmlscene Test.qml Or export QT_QUICK_CONTROLS_STYLE=material; /opt/Qt5.7.0/5.7/gcc_64/bin/qmlscene Test.qml
-
@p3c0 said in qmlscene and Qt Quick Controls 2: styling:
@morte Are you sure you are setting it correctly ? I just tried it with Qt 5.7 and it works. Can you try the same with Qt 5.7 ?
export QT_QUICK_CONTROLS_STYLE=universal; /opt/Qt5.7.0/5.7/gcc_64/bin/qmlscene Test.qml Or export QT_QUICK_CONTROLS_STYLE=material; /opt/Qt5.7.0/5.7/gcc_64/bin/qmlscene Test.qml
No, thats on Windows. Now it's start to work after i add environment variable in QtCreator for "Desktop" kit instead of setting it for external tool. Thanks for your assistance.
5/5