[PyQt] How to set the QtQuick style

Cody Scott cody at perspexis.com
Thu Oct 6 13:40:01 BST 2016


It seems that just importing

import QtQuick.Controls.Material 2.0

 in a .qml files doesn't work. I guess it is not bundled in the wheel?

On Thu, Oct 6, 2016 at 4:19 AM, Phil Thompson <phil at riverbankcomputing.com>
wrote:

> On 5 Oct 2016, at 7:35 pm, Cody Scott <cody at perspexis.com> wrote:
> >
> > How do you specify the QtQuick style?
> >
> > https://doc-snapshots.qt.io/qt5-5.7/qtquickcontrols2-
> styles.html#using-styles-in-qt-quick-controls-2
> >
> > I'm trying to find the equivalent of QQuickStyle::setStyle("Material");
>
> I'll add it to the TODO list. In the meantime you should be able to set
> the environment variable from within your script.
>
> Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20161006/2eb6c9f0/attachment.html>


More information about the PyQt mailing list