[Qt-interest] Unable to bring Scrollbar Properties in MDI subwindow of type QGraphicsView
John McClurkin
jwm at nei.nih.gov
Wed May 6 14:13:08 CEST 2009
Kamakshi Sivaraman wrote:
>
> Hi All,
>
> I have a Main window which calls the child windows using MDI property
> and child window is inherited from QScrollArea.
> In child window , I am using setWidget(obj_of_class_type_QGraphicsView)
> and using show(), i am showing the area of another class of type
> QGraphicsView.This all because I need to bring the scrollbard property
> in Graphics view area.
>
> I am unable to implement QGraphicsView with the property of scroll bars
> in child Window itself.
>
> Please any body suggest me any idea where i can bring scroll bars
> properties directly in MDI subwindow of type QGraphicsView
> with out using another class for this.
Your description of what you are trying to do makes no sense. If your
description accurately describes your code, then you either have not
read or not been able to understand the documentation. If you are just
having trouble describing your code, perhaps because English is not your
first language, then you need to post the code. To the specific question
of scrollbars in a QGraphicsView object, read the documentation about
the QGraphicsView object and look at the examples under
examples/graphcisview. There are flags you can set that determine
whether scrollbars are always present, never present, or present when
needed.
More information about the Qt-interest-old
mailing list