Results 1 to 3 of 3

Thread: QTableWidget sorting

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Location
    Vancouver, Canada
    Posts
    54
    Thanks
    17
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default QTableWidget sorting

    Hello, I am making a QTableWidget which is working nicely. I want the user to be able to sort each column, which is also working, but I don't like how it sorts columns with numbers. It will sort the numbers from 0 to 10 like this:
    0
    1
    10
    2
    3
    4
    5
    6
    7
    8
    9
    But I want it like this:
    0
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    enum Qt::SortOrder just seems to have AscendingOrder and DescendingOrder. Is there anyway to achieve what I want?

    Thanks!
    Last edited by jpn; 28th January 2008 at 19:41. Reason: missing [quote] tags

  2. The following user says thank you to abrou for this useful post:

    Raccoon29 (20th March 2008)

Similar Threads

  1. QTableWidget Sorting Widgets!
    By VireX in forum Qt Programming
    Replies: 4
    Last Post: 14th April 2007, 01:08
  2. Sorting elements in QTableWidget
    By Elmo23x in forum Qt Programming
    Replies: 3
    Last Post: 24th January 2007, 08:35
  3. Model sorting vs. selection
    By VlJE in forum Qt Programming
    Replies: 2
    Last Post: 25th October 2006, 16:46
  4. QTableWidget Sorting
    By mclark in forum Newbie
    Replies: 4
    Last Post: 29th September 2006, 22:34
  5. QTableWidget Sorting Multiple Selection
    By rhiacasta in forum Qt Programming
    Replies: 1
    Last Post: 30th August 2006, 21:05

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.