Qml module RESOURCE_PREFIX
configuration
#967
-
As per the Qt (v6.7) docs, the As per the cxx-qt docs on
So far so good. But now, let's say I'm working on a project where all of its existing modules have their How would I configure cxx-qt to generate its resources under the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @Billyzou0741326 , thank you for your interest in CXX-Qt and for contributing this discussion. Currently we do not have a way to change the If you have another reason for changing the default Also, if you're using CMake, any existing calls to I hope that answers your question. |
Beta Was this translation helpful? Give feedback.
Hi @Billyzou0741326 , thank you for your interest in CXX-Qt and for contributing this discussion.
Currently we do not have a way to change the
RESOURCE_PREFIX
for qml modules generated by CXX-Qt.Because
/qt/qml/
is in the import path by default, all modules generated by CXX-Qt should already be available from QML, so you should not need to change theRESOURCE_PREFIX
.We also make sure that your qml plugin is registered with QML automatically through our build system (and maybe a
init
method in the future, see: #964 ). This is very similar to whatqt_add_qml_module
does and should work out of the box.If you have another reason for changing the default
RESOURCE_PREFIX
, please let us know :)