[Qt-interest] Derived custom widgets
Scott Aron Bloom
Scott.Bloom at onshorecs.com
Mon Aug 30 23:28:58 CEST 2010
> Op 30-8-2010 7:44, Andre Somers schreef:
>> An example for the approach above is to make a line edit with a clear
>> button inside the text area:
>> http://www.google.nl/search?q=qt+line+edit+clear+button
> Because it seems like the original code is hard to find, because the
> Qt repos moved, I have attached the copy I had locally for
inspiration.
Thank you for the explanation in previous email and this code.
Got it all working for my use case, but a couple more issues.
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
More information about the Qt-interest-old
mailing list