Cannot #include<QQuickStyle>
Solved
QML and Qt Quick
-
@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
-
@ggalt The second line of the table a the top of the class documentation gives you the exact cmake instructions
@SGaist - I am still on Qt5 - what is the cmake instruction for that? I get a cmake error:
find_package( Qt5 COMPONENTS Gui Widgets Quick QuickControls2 REQUIRED)
Gives:
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake:28 (find_package): Could not find a package configuration file provided by "Qt5QuickControls2" with any of the following names: Qt5QuickControls2Config.cmake qt5quickcontrols2-config.cmake
-
@SGaist - I am still on Qt5 - what is the cmake instruction for that? I get a cmake error:
find_package( Qt5 COMPONENTS Gui Widgets Quick QuickControls2 REQUIRED)
Gives:
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake:28 (find_package): Could not find a package configuration file provided by "Qt5QuickControls2" with any of the following names: Qt5QuickControls2Config.cmake qt5quickcontrols2-config.cmake
-
@ggalt The second line of the table a the top of the class documentation gives you the exact cmake instructions