Results 1 to 2 of 2

Thread: QTreeWidget Right side arrow icon

  1. #1
    Join Date
    Feb 2013
    Location
    India
    Posts
    153
    Thanks
    27
    Thanked 18 Times in 18 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default QTreeWidget Right side arrow icon

    Hello Everyone,

    Is there any way to show icon in right hand side of tree widget. To make it look like http://www.ibm.com/developerworks/mo...1/TreeView.jpg

    I have some guess that it can be done via list widget but i want it in tree widget any idea?

  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 Right side arrow icon

    It's very simple. You just need to write a custom delegate for your list view.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QTreeWidget with different icon sizes
    By aguayro in forum Newbie
    Replies: 0
    Last Post: 11th January 2013, 23:01
  2. QScrollBar up-down arrow icon
    By zgulser in forum Qt Programming
    Replies: 5
    Last Post: 1st April 2010, 13:13
  3. set QListWidget/QTreeWidget icon size
    By rbp in forum Qt Programming
    Replies: 4
    Last Post: 14th October 2009, 03:05
  4. Replies: 7
    Last Post: 31st May 2009, 12:30
  5. Replies: 5
    Last Post: 15th February 2008, 03:54

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.