Results 1 to 2 of 2

Thread: QTreeWidget Single Column Sort Disable

  1. #1
    Join Date
    Apr 2008
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question QTreeWidget Single Column Sort Disable

    Hi, I was wondering if it is possible to disable the the sorting of specific columns in a QTreeWidget? If so, how do you do it? If not, what is the most appropriate widget to use, bearing in mind we need to be able to expand/collapse items?

    Thanks for any help.

  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: QTreeWidget Single Column Sort Disable

    I think the easiest way would be to apply an event filter on the header and intercept and reject all mouse clicking on respective sections of the header.

Similar Threads

  1. QTreeWidget (Row Check, Custom Sort)
    By AaronMK in forum Qt Programming
    Replies: 3
    Last Post: 8th January 2008, 15:55
  2. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 06:13

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.