[Qt-interest] The witdh of a scrollbar?
Witteveen, Arnt
ArntW at enfocus.com
Tue Jan 6 15:28:48 CET 2009
Thanks, that worked well.
Arnt
________________________________
From: Iurii Gordiienko [mailto:hordi at ukr.net]
Sent: dinsdag 6 januari 2009 11:01
To: Witteveen, Arnt
Cc: qt-interest at trolltech.com
Subject: Re: [Qt-interest] The witdh of a scrollbar?
Hi
use QApplication::style()->pixelMetric(QStyle::PM_ScrollBarExtent)
--- Original Message ---
From: "Witteveen, Arnt" <ArntW at enfocus.com>
To: <qt-interest at trolltech.com>
Date: 6 january, 11:51:14
Subject: [Qt-interest] The witdh of a scrollbar?
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
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
--
Твой новогодний номер InternetUA тут <http://www.ukr.net/ffAZj9/footer/3ababb> .
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090106/bc340b1c/attachment.html
More information about the Qt-interest-old
mailing list