[Qt-interest] QScrollArea issue
Ulf-Alexander v. Ceumern-Lindenstjerna
ceumern at vrmagic.com
Tue Apr 20 13:27:27 CEST 2010
Hi,
check the scrollBar policy:
http://doc.trolltech.com/4.6/qabstractscrollarea.html#horizontalScrollBa
rPolicy-prop
also make sure the widget actually has the desired size. The default
behavior of QScrollArea is to only show scrollbars when the content does
not fit. Try resizing your widget/scrollArea until the scrollbar
disappears.
Regards, Ulf
> -----Original Message-----
> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-
> bounces at trolltech.com] On Behalf Of Santhosh Y
> Sent: Tuesday, April 20, 2010 12:47 PM
> To: qt-interest at trolltech.com
> Subject: [Qt-interest] QScrollArea issue
>
> Hi,
>
> I am adding QWidget inside a QScrollArea.
>
> I am setting a fixed size to my QWidget as "1280 X 722"
> When I add the Qwidget to QScrollArea when the available area on the
> screen is exactly 1280, then
> also QScrollArea is showing horizontal scroll bar.
>
> I am not understanding why it has to show horizontal scroll bar when
> the
> available space is as needed by the widget inside it.
>
> Please let me know, what is the issue here?
>
> --
> ----------------------------------------------------
> Y Santhosh Kumar -
> Senior Software Engineer,
> SoftJin Technologies Pvt Ltd,
> www.softjin.com
> ----------------------------------------------------
>
>
>
> Business Disclaimer
> ____________________________________________________________
> This e-mail message and any files transmitted with it are intended
> solely
> for the use of the individual or entity to which they are
> addressed. It
> may contain confidential, proprietary or legally privileged
> information.
> If you are not the intended recipient please be advised that you
> have
> received this message in error and any use is strictly prohibited.
> Please
> immediately delete it and all copies of it from your system, destroy
> any
> hard copies of it and notify the sender by return mail. You
must
> not,
> directly or indirectly, use, disclose, distribute, print, or copy
any
> part of
> this message if you are not the intended recipient.
> ___________________________________________________________
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list