Dynamically reloading your QML in a QQmlApplicationEngine

preview_player
Показать описание
Yes, it can be done! Following up on a great suggestion from the Qt World Summit 15 in Berlin by Thomas McGuire of KDAB I've implemented it in one of my own projects. It really improves development pace by not having to restart the program each time.

This method employs a JS to C++ method, one signal/slot pair, and an event filter class. 10-15 mins to implement.

Рекомендации по теме
Комментарии
Автор

I think Loader in QML side is easier for reloading purpose. Why choose C++ side?

godsfingerX
Автор

have you tried to use Qscopedpointer object ?

ccflan
join shbcf.ru