Stretching Icon in QPushButton
Hi,
As my form resizes, the QPushButton resizes as well. However, the size of the icon inside the QPushButton is always the same size, no matter what I do. How can I make so the icon dynamically resizes so that it always fits the size of the entire push button?
Is there some other widget I should be using?
Thanks!
-Dan
Re: Stretching Icon in QPushButton
If you need it to be "pushable" then you have to subclass QPushButton (or QAbstractButton) and either draw the button yourself or stretch and apply a new icon. But if you just want the icon to be shown, you can use QLabel and tell it to scale its contents.