Results 1 to 2 of 2

Thread: QListWidget with STL

  1. #1
    Join Date
    Jun 2007
    Location
    India/Bangalore
    Posts
    156
    Thanks
    26
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Thumbs up QListWidget with STL

    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.
    Thanks,
    Rajesh.S

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QListWidget with STL

    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

Similar Threads

  1. Need Image rightside of QListwidget
    By rajeshs in forum Qt Programming
    Replies: 18
    Last Post: 12th February 2013, 20:46
  2. QListWidget - inconsistency across operating systems?
    By scwizard in forum Qt Programming
    Replies: 20
    Last Post: 20th February 2007, 01:45
  3. Replies: 13
    Last Post: 15th December 2006, 11:52
  4. keypress while editing an item in QListWidget
    By Beluvius in forum Qt Programming
    Replies: 3
    Last Post: 4th April 2006, 09:56
  5. QListWidget add QListWidgetItem
    By fellobo in forum Qt Programming
    Replies: 3
    Last Post: 20th February 2006, 19:37

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.