Results 1 to 1 of 1

Thread: i want to click on the header of a tree view to sort the data

  1. #1
    Join Date
    Sep 2020
    Posts
    1
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: i want to click on the header of a tree view to sort the data

    hi!, i made a simple tree view:
    https://i.imgur.com/svsG81p.png

    but i want this on it(the arrow in the header):
    https://i.imgur.com/6H4T6sl.png
    how im supposed to add that?


    i took the image from:
    https://doc.qt.io/qt-5/qtwidgets-ite...w-example.html


    i want to add one arrow on every column so i can sort the data


    Added after 39 minutes:


    solved: self.mi_arbol.setSortingEnabled(1)
    Last edited by adrian88888888; 2nd September 2020 at 23:38.

Similar Threads

  1. Replies: 5
    Last Post: 2nd June 2016, 09:42
  2. Replies: 1
    Last Post: 31st March 2016, 11:51
  3. Replies: 8
    Last Post: 16th July 2015, 20:44
  4. Replies: 0
    Last Post: 10th December 2010, 15:58
  5. Items in QListView should sort on Header Click
    By vinnu in forum Qt Programming
    Replies: 14
    Last Post: 10th November 2006, 13:49

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.