QML Caching



  • Hi,
    I want to create the QML cache file in advance. I read the doc http://doc.qt.io/qt-5/qtquick-deployment.html#qml-caching-for-deployment-preview 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
    load(qml_plugin)
    

    Thanks for help!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.