[Qt-interest] QGraphicsGridLayout related doubt

Alexis Ménard alexis.menard at trolltech.com
Wed May 13 13:38:13 CEST 2009


On Wednesday 13 May 2009 13:21:57 manish.s.sharma at nokia.com wrote:
> Hi,
>
> I have created a QGraphicsGridLayout and added some QPushButton in it. Now
> the button are having some text of variable lengths. How can I make sure
> that the buttons won't grow according to the text size? I tried using
> setColumnFixedWidth but even then the buttons are growing :( I want all the
> buttons to be of the same height and width irrespective of the button text?
>
> Regards,
> Manish

Look size policy documentation that may help you. QSizePolicy::Fixed.

-- 

Alexis Ménard
Software Engineer, Widgets Team 1
Qt Software, Nokia Norge AS, Sandakerveien 116, 0484 Oslo, Norway
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090513/675153bf/attachment.html 


More information about the Qt-interest-old mailing list