aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-05-26 22:01:42 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-05-26 22:01:42 +0200
commit42a784c53ead093c77f8562c0f4fd66810dc7017 (patch)
treec89833f5e38c7903499f304502c07d0cfb987cf6 /examples
parenta6c3806c49db404d27d953a66d923eddedc51839 (diff)
parent7406fc4b6967cb32175752a2ae7934bd8b1f8200 (diff)
Merge remote-tracking branch 'origin/5.15' into dev
Diffstat (limited to 'examples')
-rw-r--r--examples/declarative/textproperties/main.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/declarative/textproperties/main.py b/examples/declarative/textproperties/main.py
index 8da443edc..2f9b987d0 100644
--- a/examples/declarative/textproperties/main.py
+++ b/examples/declarative/textproperties/main.py
@@ -44,6 +44,7 @@ from os.path import abspath, dirname, join
from PySide2.QtCore import QObject, Slot
from PySide2.QtGui import QGuiApplication
from PySide2.QtQml import QQmlApplicationEngine
+from PySide2.QtQuickControls2 import QQuickStyle
class Bridge(QObject):
@@ -90,8 +91,8 @@ class Bridge(QObject):
if __name__ == '__main__':
- sys.argv += ['--style', 'material']
app = QGuiApplication(sys.argv)
+ QQuickStyle.setStyle("Material")
engine = QQmlApplicationEngine()
# Instance of the Python object