@StudentScripter said in Feedback needed: QML is this the right way to link other QML Files?:
removing RESOURCE_PREFIX / is no problem, works still fine, thanks. :D
Good to hear, that's what I expected :) There were some changes in Qt 6.5 to make things easier, so you should no longer need to specify RESOURCE_PREFIX unless you want some unconventional structure (which is not recommended)
However do you mean changing all mymodules mentions to mymodulesplugin or only this one?
I meant only one:
target_link_libraries(appQmlLibraryTest
PRIVATE Qt6::Quick
mymodulesplugin # <-- Like this
)
Cause when changing only one it gives me errors.
Can you please share the full error message? Without it, it makes it hard to troubleshoot for you.
@StudentScripter said in Feedback needed: QML is this the right way to link other QML Files?:
Also another question what to do if i wanted to add another subfolder inside my
mymodules/ directory? Lets say: mymodules/extras
You could create a new QML module (in mymodules/extras/CMakeLists.txt)