Results 1 to 3 of 3

Thread: QTreeView ICON

  1. #1
    Join Date
    Sep 2009
    Location
    china
    Posts
    13
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Smile QTreeView ICON

    QTreeView nodes can be set two ICON?
    please help me ?

  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: QTreeView ICON

    You need to implement a custom delegate to be able to put more than one icon inside a single column of QTreeView index or you can just create a pixmap which is the sum of the two icons and use that as the sole icon.
    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.


  3. The following user says thank you to wysota for this useful post:

    Raymond (28th October 2009)

  4. #3
    Join Date
    Sep 2009
    Location
    china
    Posts
    13
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Thumbs up Re: QTreeView ICON

    Thank you very much!

Similar Threads

  1. adding one icon to all items in QTreeView
    By Mystical Groovy in forum Qt Programming
    Replies: 6
    Last Post: 6th October 2009, 12:13
  2. Problem with application icon
    By sanjayshelke in forum Qt Programming
    Replies: 4
    Last Post: 8th September 2009, 10:21
  3. Differentiate the icon and text in a QTreeView column
    By gmat4321 in forum Qt Programming
    Replies: 0
    Last Post: 25th February 2009, 15:38
  4. QTreeView - different icon sizes on sublevels?
    By luf in forum Qt Programming
    Replies: 3
    Last Post: 18th January 2008, 15:34
  5. How to dispay an icon in the first column of QTreeView
    By yogeshm02 in forum Qt Programming
    Replies: 1
    Last Post: 5th January 2006, 15:51

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.