aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/textproperties/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/textproperties/main.py')
-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