Unsolved Where is the RIgnt place for .qml files : qrc or QML folder?
-
What approach shall I take when developing?
Actualy I can work with qrc and just files on disk and import "qrc:/ ..." or "/ ..."
But what is the right approach? -
@Kofr
there is no right or wrong. Both are valid and works.
But the qrc way is the most "bulletproof" one. -
@raven-worx so, am I right that QML files will stay in Local disk after building an app?
-
@Kofr said:
@raven-worx so, am I right that QML files will stay in Local disk after building an app?
i am afraid i dont understand your question.
When using qrc they are compiled into your binary and thus are loaded into the memory. -
@raven-worx so, QtQuickCompiler is "turned on" by default? I mean, that's what it does - compiles QML files into binary, so they won't lay around binaries as a plain text files? Because I don't see any QML files in my builds as well and I didn't do anything special to achieve that.
-
@veryqtperson
this has nothing to do with QtQuickCompiler.
Files are copied 1:1 into qrc - which is actually a cpp file with some binary arrays. This is completely independent of the type of the file.