Quote Originally Posted by AaronMK View Post
How do I actually access the different states of a QIcon, and use them in the setIcon() functions of various Qt objects?
Supposedly, the QIcon class automatically generates different versions, such as a grayscale version for a disabled state. It seems the only way to access them is to generate a specific W x H pixmap of it, or to change the state of an entire Data Model item.
If you need to access the image of generated QIcon, you could use QIcon::pixmap with needed Mode to access any state. Then you could construct a new QIcon from it, and use it.