gamecreature / QtAwesome

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

Take existing QPixmap/QImage/QIcon as source? #54

Closed Dariusz1989 closed 1 month ago

Dariusz1989 commented 1 year ago

Hey

Its an awesome engine that can colorize icons based on state/etc. It would be great if it could take any of the other 3 types of pixmaps and draw that + its states/etc logic.

Regards Dariusz

gamecreature commented 1 year ago

Thanks for the suggestion. This looks a like nice addition!

gamecreature commented 1 year ago

I'm looking at this issue, but I'm wondering what QtAwesome should provide..

QIcon already supports all the different modes and states (https://doc.qt.io/qt-6/qicon.html#making-classes-that-use-qicon) And you can supply a different Pixmap for every state.

Dariusz1989 commented 1 year ago

Hey Hmm I can't quite remember the details now (sigh) but I was trying to control QToolButton checked state/etc via icon. The default one did not quite work and I remember wacking up something custom. I'll dig in to code see if I can get example to show why this would help here.