Results 1 to 2 of 2

Thread: Dynamic sorting using proper column after adding a row.

  1. #1
    Join Date
    Feb 2010
    Posts
    68
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Dynamic sorting using proper column after adding a row.

    I'm using QTableWidget to represent data. It's only text data in several columns so I don't need to implement special sorting - checking "sortingEnabled" checkbox in Designer is all of the work. But now I have added a functionality of creating a new row. I want to create it and immediatily sort the table to make it move to the right position. But it should be sorted using the data in appropriate column. By appropriate column I mean a column which header was lately clicked. How to determine which column was the key for sorting lately? How to sort it using this column?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Dynamic sorting using proper column after adding a row.


Similar Threads

  1. Adding Library Methods - Static Vs Dynamic
    By waynew in forum Qt Programming
    Replies: 1
    Last Post: 15th January 2010, 16:16
  2. Dynamic Sizing of QTableView Column Widths
    By tntcoda in forum Qt Programming
    Replies: 1
    Last Post: 17th June 2009, 18:30
  3. Replies: 0
    Last Post: 5th November 2008, 14:31
  4. Sorting column in QTreeWidget
    By lni in forum Qt Programming
    Replies: 8
    Last Post: 14th November 2007, 18:35
  5. Column Sorting
    By sumsin in forum Qt Programming
    Replies: 1
    Last Post: 16th June 2006, 07:48

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.