[Qt-qml] Howto disable a QML Item?
Cornelius Hald
hald at icandy.de
Wed Mar 16 13:28:17 CET 2011
Hi,
is it possible to disable/deactivate/freeze a complete QML Item. So that
it won't listen to any signals anymore?
For example, I'm having a menu that contains a ListView based on a C++
model. The model changes very often (distance between User and POI), so
the menu is updated very often. But usually the menu is hidden (visible:
false) and thus don't need to be updated continuously.
I'm looking for a property that I can set while the menu is hidden that
prevents all updates from happening. So only if the menu is actually
visible I want it to update.
Is there something like that? If not what's the best practice to deal
with this situation?
I could use a Loader and unload the Menu while it is not visible.
However then I'm having the performance impact on loading and unloading
the same thing over and over again.
What do you guys think?
Conny
More information about the Qt-qml
mailing list