PDA

View Full Version : QListWidget with STL



rajeshs
21st July 2007, 16:43
Hi friends,

I am using QT 4.3 , I have QListWidget , i am loading data into QListWidget by Qlist

I want to load particular amount of data each time From QList, For that search its taking

time, Is there any posiblity to load data into listwidget using normal STL libraries like List

or Map.

marcel
21st July 2007, 17:16
So you want a very fast and effective model?
Create a custom model and use a QListView instead. The model should have a very fast data structure as back store. That data structure is of your choice.

This way you will perform the searches directly in the model, with no need for an additional, external container.

Regards