Designer with Quick Controls 2 Style



  • Hello,

    I have a custom Qt Quick Controls 2 style, where I have placed the style in a source folder such as "qml/MyStyle". When running the app, I am able to use this style with qtquickcontrols2.conf by adding the style path shown below and adding the style to my resources:

    QQuickStyle::addStylePath("qrc:/qml");
    

    However, when I open a UI file in the designer, it does not pick up the style. Does anyone know how to make the designer recognise the custom style?

    (It works fine when the style is placed in the root directory of the project, but not when put in a subdirectory.)

    Thanks.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.