Results 1 to 3 of 3

Thread: QListView and big database - bad performance

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2014
    Posts
    76
    Thanks
    17
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default QListView and big database - bad performance

    Hi,
    I have problem with performance QListView.

    For add items I used this function

    Qt Code:
    1. void MainWindow::addToModel(const QString &path)
    2. {
    3. QStandardItem * item = new QStandardItem();
    4. item->setIcon( icon );
    5. item->setText( path );
    6.  
    7. dirModel.appendRow( item ); // QStandardItemModel
    8.  
    9. }
    To copy to clipboard, switch view to plain text mode 

    It work fine but when I try add 200 000 items my application froze for 3-4 seconds.

    What I already done is

    Qt Code:
    1. setUniformItemSizes( true );
    To copy to clipboard, switch view to plain text mode 

    What can I do to speed up this process?
    Last edited by atomic; 26th July 2014 at 18:56.

Similar Threads

  1. QListView performance issue
    By zgulser in forum Qt Programming
    Replies: 7
    Last Post: 4th June 2014, 09:39
  2. Replies: 2
    Last Post: 6th April 2014, 12:07
  3. oracle Database performance in QT
    By gbaguma in forum Qt Programming
    Replies: 2
    Last Post: 3rd August 2013, 02:23
  4. How to show images from database as icons in QListView
    By LeshaS in forum Qt Programming
    Replies: 2
    Last Post: 21st January 2011, 08:13
  5. QListView and DataBase
    By ederbs in forum Qt Programming
    Replies: 2
    Last Post: 28th October 2006, 16:18

Tags for this Thread

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.