Results 1 to 2 of 2

Thread: Tree selection - icon transparency (lack of)

  1. #1
    Join Date
    Mar 2007
    Posts
    74
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Tree selection - icon transparency (lack of)

    I have a QTreeWidget for which several branches have an attached Icon set via setIcon().

    When that particular branch is selected the icon image ends up with a square colored
    area around it. I want just the circular colored ball to show under the selection.

    I know this is some sort of a transparency issue, but I have no idea how to easily address
    this.

    Is this something i can control by editing the image itself?
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Tree selection - icon transparency (lack of)

    It looks like you have to provide a "selected" version of your icon. See QIcon::addPixmap().

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.