Sign up for the KDAB Newsletter
Stay on top of the latest news, publications, events and more.
Go to Sign-up
Find what you need - explore our website and developer resources
9 March 2023
In this second video, Christoph presents the technique of "Hot Reload" allowing for quicker turn-around times in embedded development using Qt/QML.
For this, 3 steps are necessary:
1. Add a mechanism (Loader + FileWatcher) inside QML that triggers a reload when a sourcecodefile changes.
2. Add a File-Watcher to detect when a file is saved on PC. This then triggers a synchronization to the embedded target source code folder.
3. Modify the QML Engine to clear the Component Cache on reload to make it work.
Thanks go to silgon on stackoverflow for the quick file-sync solution: https://stackoverflow.com/a/40525217/394218
Code shown in this video: https://github.com/KDAB/kdabtv/tree/master/Qt-Embedded-Cycletime/video2_hot_reload
The Loader element video from Jesper Pedersen https://www.youtube.com/watch?v=nteJeojg07k
QML Hot Reload: Felgo presents hot new feature https://www.youtube.com/watch?v=y0_RMWd3h9U
Qt DevCon talk: QML Hot Reload in Practice https://www.qtdevcon.com/qml-hot-reload-in-practice-how-to-use-qml-reload-to-improve-review-meetings-for-remote-teams/
All 'Reducing your Qt Embedded development cycle time' videos: https://www.youtube.com/playlist?list=PL6CJYn40gN6gUTZ9kAW7ocyjIVe5QbOUB
All 'Embedded with Qt' videos: https://www.youtube.com/playlist?list=PL6CJYn40gN6iVG059HBoLQZ1CMTyXCGpw
Stay on top of the latest news, publications, events and more.
Go to Sign-up
Upgrade your applications from Qt 5 to Qt 6 with KDAB’s migration services. Get a free migration assessment and join a hands-on workshop to prepare your team for a successful transition!
Learn more