Replies: 2 comments 1 reply
-
For QML files normally you include the uri and then use the component directly. Eg a file like
You may have a few places in C++ where you need to refer to the path, eg when setting the However for qrc files, like images, these could be used in multiple places and tend to have aliases to make things shorter. So we should explore whether adding alias support in the |
Beta Was this translation helpful? Give feedback.
-
Are you sure module name/ URI uses dots and not slashes ? Docs definitely say otherwise https://docs.rs/cxx-qt-build/latest/cxx_qt_build/struct.CxxQtBuilder.html#method.qml_module |
Beta Was this translation helpful? Give feedback.
-
When loading qml files using the QMLModule Struct in CxxQtBuilder, the path of each qml file becomes
qrc:/qt/qml/{uri/of/module}/{path/to/file}
which is extremely long is some cases. I am learning QT right now, and it seems QT5 used a specific qrc file and would allow alias for files. Is this still possible with the new QML module stuff in QT 6 ?Beta Was this translation helpful? Give feedback.
All reactions