I'm experimenting with QuickControls with latest PyQt5 and trying to apply Material style via QML as explained here and here:
QQuickStyle::setStyle("Material");
But unfortunately I can't find any refernces to QQuickStyle class in PyQt to apply style via python code and only working solution is to specify command line argument for this:
python app.py -style material
Could someone point me to the correct applying QuickControls style via python script please?
I am looking for QQuickStyle too, PyQt seem doesn't has QQuickStyle class, but you can do this in code,
sys_argv = sys.argv
sys_argv += ['--style', 'material']
app = QGuiApplication(sys_argv)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With