Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Designer with Quick Controls 2 Style
gpunkt last edited by gpunkt
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:
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.)
Thomas Hartmann last edited by
Defining QT_QUICK_CONTROLS_STYLE_PATH to the location where your style is found should do the trick.