QtQuick.Dialog is uninstalled
-
I tried to import QtQuick.Dialogs but I still have a message

I use Cmake to build my program and I included
find_package(Qt6 REQUIRED COMPONENTS Widgets)
target_link_libraries(mytarget PRIVATE Qt6::Widgets)
in my CMakeLists.txt
I don't know how to deal with this!! -
I tried to import QtQuick.Dialogs but I still have a message

I use Cmake to build my program and I included
find_package(Qt6 REQUIRED COMPONENTS Widgets)
target_link_libraries(mytarget PRIVATE Qt6::Widgets)
in my CMakeLists.txt
I don't know how to deal with this!!Hi,
Are you also linking the QtQuick related modules ?
-
No, with CMake, as you do with the widgets module.
-
@linhnobi requiring and using is not the same thing. You don't link your application to these modules.
-
Add all the modules to the
target_link_librariescall.

