Cannot #include<QQuickStyle>
-
wrote on 17 Jan 2018, 20:08 last edited by
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?
-
wrote on 17 Jan 2018, 20:12 last edited by
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
-
@ggalt The second line of the table a the top of the class documentation gives you the exact cmake instructions
wrote on 30 Jun 2024, 01:47 last edited by Tom asso@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
wrote on 9 Jul 2024, 01:18 last edited by@SGaist said in Cannot #include<QQuickStyle>:
ine of the table a th
yes ,it's there exactly。 thank you for resolving my problem