I'm building a simple app using QML + PySide / Python as backend.
I'm trying to use "Universal" qml style. I'm subclassing QApplication and adding -style Universal
argument :
class MyApp(QApplication):
def __init__(self, args):
qt_args = [args[0], '-style', 'Universal'] + args[1:]
super(MyApp, self).__init__(qt_args)
It works (my app uses Universal style) but it throws the following warning:
QApplication: invalid style override passed, ignoring it.
Available styles: windowsvista, Windows, Fusion
It seems that PySide2 has troubles getting the standard QML styles (Universal / Material)
Does anyone know how to deal with it?
Thanks.