Load items when that need
-
Hello All!
I Have a model with a lot of items, and have a view based at QML. Currently all of items load when view is show, how i can say to view so it MUST load ONLY displayed items?
tnx a lot 4 answers! -
What exactly is an item? A video clip, an image, a sound file, or what else?
-
Try the QML "Loader":http://qt-project.org/doc/qt-5/qml-qtquick-loader.html type.
-
Also take a look at ListView and StackView. They automatically loads the item when need
-
from model take a path to image and description text. and when view begin construct all of images load to the memory (it's a lot of expensive in my mind..).
-
[quote author="Gianluca" date="1403299369"]Also take a look at ListView[/quote]
I use a ListView
-
[quote author="Maxim Prishchepa" date="1403596627"][quote author="Gianluca" date="1403299369"]Also take a look at ListView[/quote]
I use a ListView[/quote]
I think we're coming at this from different understandings of the problem. It might help if you can provide a concise example.
-
Hi,
Is you model c++ based ? And you have subclassed QAbstractListModel or QAbstractItemModel ?