Results 1 to 1 of 1

Thread: a faster QSqlQueryModel::data()

  1. #1
    Join Date
    Aug 2007
    Posts
    275
    Thanks
    28
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default a faster QSqlQueryModel::data()

    I am using QSqlQueryModel for my QTableView and I found that fetching data from database is not bad timewise since i ask my model to fetch them all to begin with.

    somewhere in the life of my model i ask all row's data with,QSqlQueryModel::data() , and find that this is the slow part in my application.

    I am asking your opinion on how to somehow bypass this process and get to my needed data in a fast manner, I am only using Qt:isplayRole part. My current Rate is about 30000 rows per second with 100 000 rows in the model

    Any suggestion is appreciated,
    baray98
    Last edited by baray98; 24th September 2009 at 01:08.

Similar Threads

  1. Which is faster, drawRect(..) Or drawPath(..) ?
    By nileshsince1980 in forum Qt Programming
    Replies: 1
    Last Post: 18th November 2008, 08:26
  2. Faster paintEvent
    By SailinShoes in forum Qt Programming
    Replies: 1
    Last Post: 1st October 2008, 15:25
  3. Faster code possible?
    By ShaChris23 in forum General Programming
    Replies: 1
    Last Post: 28th May 2008, 07:35
  4. What's faster: QPixmap-to-QImage or QImage-to-QPixmap
    By forrestfsu in forum Qt Programming
    Replies: 2
    Last Post: 15th December 2006, 17:11
  5. faster QScrollView
    By firas in forum Qt Programming
    Replies: 2
    Last Post: 29th April 2006, 18:49

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.