I am working on a custom control box (that min,max/restore/close button in the top right of your Windows titlebar) for my new application. I use closeIcon = style.standardIcon(QStyle.SP_TitleBarCloseButton) to get the correct icon for them. See the full code here in my other SO question. What I got is a black icon. In which I need the white version when it's in hover state.

Can we .. I don't know, inverse it? Or should I get another icon from QStyle?

By the way, for this particular case, I simply create two version of icons: black and white. And creating a new pushbutton class, that specifically override enterEvent and leaveEvent. In there, I switch the active icon using setIcon to appropriate black/white icon
–
swdevJul 6 '14 at 6:44