gamecreature / QtAwesome

QtAwesome - Font Awesome for Qt Applications
Other
773 stars 147 forks source link

On windows 10, the an icon in QPushButton that is selected isn't shown #30

Closed SverrirValgeirsson closed 6 years ago

SverrirValgeirsson commented 6 years ago

Hi there. In latest versions of QtAwesome it seems that the painting fails somehow for a selected QPushButton. If I make sure that the paint method sets modePostfix = "" and optionKeysForModeAndState() does the same, I at least get the paintings working as previously. I haven't dug more into it since just skipping the two switch statements solved my issue for now.

gamecreature commented 6 years ago

Which options do you set for the QPushButton? Could you please give me the a piece of code for this button?

SverrirValgeirsson commented 6 years ago

Hi. The code is here. Should compile out of the box. https://github.com/SverrirValgeirsson/Todo

This happens for all the buttons I have it seems. Both with "checkable" option and no options.

gamecreature commented 6 years ago

Running on OS X, this issue isn't happening. Though I've merged a commit. (merged a fix from https://github.com/gamecreature/QtAwesome/issues/29) Could you please check if this solves your issue?

SverrirValgeirsson commented 6 years ago

I didn't get it on OSX either. But both Linux and Windows had the same problem. With this change you did now it is fixed.

Thanks :)