Results 1 to 7 of 7

Thread: sorting Data in QTable

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2009
    Posts
    36
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default sorting Data in QTable

    hi...
    I'm successfully inserting data in QTable.
    I'm having 12 column.

    In 1 column i'm storing QDate in Qstring format.

    the question is can i sort the table through Datewise.

    this is code which is working perfectly while sorting table with integer.

    Qt Code:
    1. tableWidget->sortByColumn(4,Qt::DescendingOrder);
    To copy to clipboard, switch view to plain text mode 
    Last edited by sosanjay; 23rd October 2009 at 11:38.

Similar Threads

  1. QTable Sorting
    By mromey in forum Qt Programming
    Replies: 1
    Last Post: 23rd April 2009, 07:28
  2. Best way to display lots of data fast
    By New2QT in forum Newbie
    Replies: 4
    Last Post: 16th October 2008, 22:46
  3. how to access QCheckTableItem data with in a QTable.
    By ashukla in forum Qt Programming
    Replies: 1
    Last Post: 15th September 2007, 11:55
  4. Displaying data in QTable
    By raghvendramisra in forum Qt Tools
    Replies: 1
    Last Post: 6th September 2007, 12:48
  5. QTable - Data Base Problem
    By esq in forum Qt Tools
    Replies: 9
    Last Post: 27th May 2007, 23:08

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.