[Qt-interest] size of QCheckBox

Colin S. Miller no-spam-thank-you at csmiller.demon.co.uk
Tue Sep 15 12:49:54 CEST 2009


Serge wrote:
> i receive error C2039: 'setRowSpace' : is not a member of 'QGridLayout'
> i'm using QT 4.3.3
> 
Ah. I was using the Qt3 docs.
If you have an instance of a QCheckBox that has been laid out, then use
checkbox->width() or checkbox->minimumWidth().
I think this will get the correct size, but I'm not sure if it will
take account of the padding on each side of the checkbox.

BTW,
full documentation is available on

http://doc.trolltech.com/4.3/index.html
see the "Main Classes" link


HTH,
Colin S. Miller



More information about the Qt-interest-old mailing list