gboelter
18th February 2010, 07:58
I have designed a keypad using QPushButton with Icons.
For the keypad I have used QGridLayout, so the user can resize the keypad.
Resizing works fine for the Buttons, but how can I resize the icon too?
With seticon() I can change the icon and with setIconSize() I can change the size of the icon. But according to the manual - if I am right - I can set the size only as a fixed maximum size.
Is there any other way to stretch the icon dynamically together with the Button?
Thanks in advance.
For the keypad I have used QGridLayout, so the user can resize the keypad.
Resizing works fine for the Buttons, but how can I resize the icon too?
With seticon() I can change the icon and with setIconSize() I can change the size of the icon. But according to the manual - if I am right - I can set the size only as a fixed maximum size.
Is there any other way to stretch the icon dynamically together with the Button?
Thanks in advance.