Qt 6.11 is out! See what's new in the release
blog
QML Preview not working
-
Hi!
Here it says you can see a live preview. But the preview is not live.
-
Hi!
Here it says you can see a live preview. But the preview is not live.
Hi @t.vanbesien, it works fine for me in Qt Creator 19.0-beta1 with Qt 6.10.2 on Windows:
- Create a new "Qt Quick Application" project
- Select "Build" > "QML Preview"
- Change the window's
title - Add
color: "green"
Steps #3 and #4 trigger instant updates in the preview window.
-
[Using QtCreator 18.0.2 and Qt 6.7.2]
I had the same issue and I solved it by adding "NO_CACHEGEN" under "qt_add_qml_module" in my CMakeLists.txt file.
As far as I understand, this problem occurs because the Preview uses the file under build folder but your changes occur on your projects file (which are not exactly the same file) and this tag disables caching and thus solves the problem.
qt_add_qml_module(appXXX
URI XXX
VERSION 1.0
NO_CACHEGEN