This will work. Seems to me that flip-flopping the icons back and forth would create some overhead. Especially when the actual .png file is copied into memory. The .png file would then be deleted when I set the transparent icon. Whenever a change is made, and I reset the .png icon, the file is again copied into memory and reset in the item. Seems like it would be a little nicer if the icon itself had a hide method, or the pixmap returned as a reference. I'm sure this could cause problems if someone didn't know what they were doing with the referenced icon, but still...
Thanks for the help! I did this same thing, just didn't fill the pixmap with Qt::transparent.
Bookmarks