[Qt-interest] Derived custom widgets
Neville Dastur
qt at dastur.me.uk
Mon Aug 30 23:50:11 CEST 2010
> 1) I am using a fudge factor of 24 to account for the combobox drop down
>
> arrow button. I can't find a pixel metric for it. Is there a better way
> of getting the width
>
> Its part of the style. I cant remember off the top of my head, but
> there is an enum that you can query the style for to get its pixel width
> for combo boxes
>
>
Amongst all the QStyle::PM_... enum values
(http://doc.qt.nokia.com/4.6/qstyle.html#PixelMetric-enum) I can't find
one that relates
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100830/d62f20c2/attachment.html
More information about the Qt-interest-old
mailing list