module "org.wangwenx190.FramelessHelper" version 1.0 cannot be imported because: module "QtQml" version 1.0 is not installed
Mr17MG opened this issue · comments
When I have this line in my main.cpp
engine.addImportPath(":/");
My Project says:
module "org.wangwenx190.FramelessHelper" version 1.0 cannot be imported because: module "QtQml" version 1.0 is not installed
When I remove /auto
from the line 158 from framelesshelper/src/quick/CMakeLists.txt
for example:
qt_add_qml_module(${SUB_MODULE_TARGET}
URI "org.wangwenx190.${PROJECT_NAME}"
VERSION "1.0"
OUTPUT_DIRECTORY "${__import_base_dir}/org/wangwenx190/${PROJECT_NAME}"
RESOURCE_PREFIX "/"
TYPEINFO "plugins.qmltypes" # This is the default type info file name since at least Qt5, some tools won't recognize other names.
#NO_RESOURCE_TARGET_PATH # Can't be used for non-executable targets.
OUTPUT_TARGETS __qml_targets
IMPORTS
QtQml
QtQuick
QtQuick.Controls.Basic
)
It will be work prefectly.
Can you remove auto from these lines?
Really thanks for providing the clean solution! It's fixed now.