PYSIDE2 Style
Unsolved
Language Bindings
-
I am using latest pyside2 with an app using QGuiApplication & QQmlApplicationEngine.
I am trying to pass a style on the command line ( -style) but the style seems to make no difference to appearance of application.
Does pyside support the style being passed on the command line when QGuiApplication is initialized?
-
HI and welcome to devnet,
AFAIK, you are using the wrong tool, QML application are not rendered through Qt's QStyle classes. You might want to take a look at the Styling Qt Quick Controls 2 chapter in Qt's documentation.
Hope it helps
-
Yes, it's supported.
You can take a look at the following example which passes the--style
argument.
http://code.qt.io/cgit/pyside/pyside-setup.git/tree/examples/declarative/textproperties/main.py