Results 1 to 5 of 5

Thread: Extra empty rows in QTableView when sorting columns

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2012
    Posts
    15
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default Extra empty rows in QTableView when sorting columns

    Hello!

    I am working with QTableView and its model is a subclass of QAbstractTableModel. I have to sort columns on the tableview. I do that by SQL queries (ORDER BY). So when sorting I refresh my model. When I click on the tableview headers there is sorting but there are also extra empty rows in the bottom of the tableview that cannot be selected by mouse click. When you click again on the headers these extra rows are disappearing one by one (with one new click one empty row disappears). What can I do to solve this problem? I have googled the issue but there are no results. Please, help me.
    Last edited by tehman; 15th June 2012 at 07:28.

Similar Threads

  1. Replies: 4
    Last Post: 8th February 2012, 13:16
  2. Sorting columns of the QTableView
    By Qiieha in forum Qt Programming
    Replies: 8
    Last Post: 9th May 2011, 19:24
  3. Weird problem resizing rows and columns in qtableview
    By Tiansen in forum Qt Programming
    Replies: 1
    Last Post: 27th December 2010, 14:26
  4. Replies: 8
    Last Post: 14th August 2008, 15:48
  5. Spanned Item Spacing on Empty Columns
    By giverson in forum Qt Programming
    Replies: 1
    Last Post: 19th March 2007, 22:10

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.