Solved Cannot #include<QQuickStyle>
-
For some reason I can't include QQuickStyle. The error message I get on compilation is
/home/name/projects/SLDQuick/main.cpp:3: error: QQuickStyle: No such file or directory #include <QQuickStyle> ^~~~~~~~~~~~~
Any help?
-
Add
QT += quickcontrols2
in the .pro file. -
@jpnurmi Any idea WTF to include with cmake??? I find it incredibly frustrating that Qt 6.6 documentation only tells you how to include this in a .pro file when most of us switched to cmake years ago!
-
@ggalt The second line of the table a the top of the class documentation gives you the exact cmake instructions