[Qt-interest] Not able to increase size of buttons in grid and seticon for those buttons
Sean Harmer
sean.harmer at maps-technology.com
Wed May 6 10:07:57 CEST 2009
Sai Chandra wrote:
>
> hi,
> In S60 Emulator ,I have a grid lay out where there are 9 buttons.
> And for the buttons in the grid I am not able to change the size and
> use the method *setIcon*. How do i do that?? Any new functions to be
> used there instead of *setIcon* and *setGeometry*
QAbstractButton::setIconSize( const QSize& size ) perhaps?
As for changing the size of the buttons, this is handled by the layout
within the constraints imposed on it so setGeometry won't work. Just
increase the buttons minimum size in designer or code. This will prevent
the grid layout from making the buttons any smaller than the size you set.
Sean
More information about the Qt-interest-old
mailing list