Import path: Explicitly recommend "qrc:/qt/qml"
Recommend it as a sensible default, and link to qt_add_qml_module and the (Qt) cmake policy to enable that default. Task-number: QTBUG-109799 Pick-to: 6.5 6.5.0 Change-Id: Iae63622bd789bda58a2fb996c3bf1023d1aadac8 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
parent
2d8b15cc1c
commit
aa8d19a752
|
@ -292,6 +292,11 @@ cannot specify resource paths or URLs in QML_IMPORT_PATH, as they contain
|
|||
colons themselves. However, you can add resource paths and URLs by calling
|
||||
QQmlEngine::addImportPath() programatically.
|
||||
|
||||
\note It is recommended that applications and libraries put their modules
|
||||
under "qrc:/qt/qml". This happens by default when the module is created
|
||||
with \l{qt_add_qml_module}{qt_add_qml_module()} and \l{QTP0001} is
|
||||
enabled.
|
||||
|
||||
|
||||
\section1 Debugging
|
||||
|
||||
|
|
Loading…
Reference in New Issue