Results 1 to 2 of 2

Thread: How to handle huge data with QSqlQueryModel?

  1. #1
    Join Date
    Jan 2012
    Location
    Iran, Tehran
    Posts
    308
    Thanks
    75
    Thanked 24 Times in 21 Posts
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default How to handle huge data with QSqlQueryModel?

    We have a QSqlQueryModel which loads a huge chunk of data. When its size of loaded data reaches to about 1.5 GB, the program crashes. How can we handle this situation? Can we catch an exception or limit the amount of data that QSqlQueryModel loads?

  2. #2
    Join Date
    Jul 2012
    Posts
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Cool Re: How to handle huge data with QSqlQueryModel?

    Qsqlquerymodel should load 256 items by default, more items can be fetched via fetchMore() method.

    http://qt-project.org/doc/qt-4.8/qsq...html#fetchMore

Similar Threads

  1. Replies: 2
    Last Post: 27th March 2013, 05:21
  2. How to store huge data in a Qt software
    By Momergil in forum Qt Programming
    Replies: 3
    Last Post: 7th April 2012, 23:43
  3. Best way to handle huge QImage setColorTable change
    By bruceariggs in forum Qt Programming
    Replies: 2
    Last Post: 24th September 2011, 23:47
  4. QTcpSocket get disconnected when server is sending huge data
    By KernelCoder in forum Qt Programming
    Replies: 3
    Last Post: 1st April 2011, 09:45
  5. Sort huge data use QSortFilterProxyModel
    By jiaorenjie in forum Qt Programming
    Replies: 0
    Last Post: 16th March 2011, 03:56

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.