Results 1 to 2 of 2

Thread: QTable removeRow with large table

  1. #1
    Join Date
    Jan 2006
    Posts
    17
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default QTable removeRow with large table

    Using Qt3 QTable.

    I have some simple code that removes rows when they are selected and then deleted
    (via a button) by the user that works fine with small data sets (a dozen or so rows) but when I place something like 32000 rows in the table the deletion coughs and sputters. The entire UI just goes blank and stays for minutes that way (I have let it go 3 min. with no end).

    Is there something I should know about the removeRow method when a large number of rows are in the table? I'm currently just trying to delete 3 rows from the large table.

    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QTable removeRow with large table

    You might want to try disabling updates first so that the table doesn't redraw itself after deleting each item and enable them again after removing all items.

    Also make sure you read this: http://doc.trolltech.com/qq/qq07-big-tables.html

Similar Threads

  1. QTable gives error when put on a dialog??
    By darpan in forum Qt Tools
    Replies: 3
    Last Post: 7th August 2006, 19:57
  2. QTable resize problem with large tables
    By Robzzz in forum Newbie
    Replies: 3
    Last Post: 22nd May 2006, 14:13
  3. displaying any table on a qdatatable
    By Philip_Anselmo in forum Newbie
    Replies: 4
    Last Post: 9th May 2006, 22:12
  4. creating table plugin
    By mgurbuz in forum Qt Programming
    Replies: 3
    Last Post: 28th April 2006, 13:50
  5. Problem with QTable
    By zlatko in forum Qt Programming
    Replies: 1
    Last Post: 16th February 2006, 10:00

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.