Hi, On Wed, Mar 16, 2011 at 5:58 PM, Cornelius Hald <[email protected]> wrote: > 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. >
Maybe you can just set/unset the ListView's model? Girish _______________________________________________ Qt-qml mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt-qml
