Results 1 to 3 of 3

Thread: setting QTreeWidget vertical labels

  1. #1
    Join Date
    Oct 2006
    Location
    Raleigh, NC
    Posts
    11
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default setting QTreeWidget vertical labels

    Hi,

    How do I set the row labels for a QTreeWidget, the setHeaderLabels sets the column labels but I see nothing for the row labels?

    Thanks
    Hua-Ying

  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: setting QTreeWidget vertical labels

    The tree widget doesn't have row labels. You'll have to use QTableWidget to use them.

  3. #3
    Join Date
    Apr 2006
    Location
    San Francisco, CA
    Posts
    186
    Thanks
    55
    Thanked 12 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: setting QTreeWidget vertical labels

    Or you could create some external QLabel's outside your tree widget. Might take a bit of work to get it to look good though, depends on what you're trying to do.
    Software Engineer



Similar Threads

  1. resizing a QTreeWidget
    By drhex in forum Qt Programming
    Replies: 6
    Last Post: 27th October 2006, 22:32

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.