Important: Please read the Qt Code of Conduct -

QML Caching

  • Hi,
    I want to create the QML cache file in advance. I read the doc but unfortunately i'm not quite sure how to set up my project.

    I have a C++ object (core) and a control it via a QML gui. So i think i have to add the following to my .pro file, but i have no clue what to set to the TARGETPATH variable?

    TARGETPATH = MyCompany/CommonComponents  <- ???
    QML_FILES = main.qml setup.qml popup.qml ... qmldir
    CONFIG += qmlcache
    SOURCES = main.cpp ...
    QT += quick

    Thanks for help!

Log in to reply