[Qt-interest] The witdh of a scrollbar?
Witteveen, Arnt
ArntW at enfocus.com
Tue Jan 6 10:51:14 CET 2009
In the constructor of my widget, derived form QScrollArea, I'm trying to
set the minimum width in a way that will make my content visible, even
if a scrollbar pops up. So I'm trying to do
setMinimumWidth( theContentLayout->minimumSize().width() + x );
But I can't seem to get a reasonable value for x. I tried
verticalScrollBar()->minimumWidth(), but that's 0 (a verticascrollbar's
minimum width is 0?). I also tried verticalScrollBar()->width(), but
that looks like about 5 times the witdh of a scrollbar (it returns 100).
What am I doing wrong?
Arnt
More information about the Qt-interest-old
mailing list