This repository contains an implementation of a C++ class that allows to dynamically reload the modified qml files in a Qt C++/QML project.
Qt Version: 5.5.1
- Open DynamicQMLDeveloping.pro in your Qt Creator.
- Build & run.
- Modify one of the provided qml files.
- Press CTRL+S, and watch the result.
Please look how it's done in the main.cpp. Basically you need to :
- instantiate a QQuickView
- instantiate the DynamicQMLWindow with the previous object
- set the view qml source file
- call DynamicQMLWindow show() method
NB: If you want to expose C++ to Qml, please use the DynamicQMLWindow inner engine