[Qt-interest] NoScrollBar is coming
Sujan Dasmahapatra
sujan.dasmahapatra at gmail.com
Thu Aug 20 17:38:57 CEST 2009
Mr John Thanks for information I think I understood the problem. Please tell
me one thing upto what extent maximum I can increase the size of the scene
?? Thanks
Sujan
On Thu, Aug 20, 2009 at 6:31 PM, John McClurkin <jwm at nei.nih.gov> wrote:
> Sujan Dasmahapatra wrote:
> > Dear Mr Ferenc
> > I need to discuss something in this regard.When I create a
> > QGraphicsScene and a QGraphicsView, Do I need to do
> > QRectF rect;
> > scene->setSceneRect(rect);
> > view->setSceneRect(rect);
> >
> > What would be the optimized size of the rect ???? According to my
> > implementation I haven't set SceneRect and by default
> > ""The default policy is
> > Qt::ScrollBarAsNeeded" for both directions..."
> > So in my case when my object is going out of the view scrollbar should
> > come , why it's not coming ????
> >
> > I have read GraphicsView Framework still my doubt is under-development.
> > Could youhelp me in uderstanding these things .
> >
> > Thanks !!!!
> >
>
> Sujan,
> You are manipulating objects in your QGraphicsScene and making them
> go
> out of the scene. However the QGraphicsScene has no visual properties,
> that is, it has no scrollbar. Only the QGraphicsView has scrollbars. The
> default behavior is to show scrollbars if the QGraphicsScene is larger
> than the QGraphicsView. Causing objects to move out of the scene does
> not automatically cause the scene to grow. Since the scene is always the
> same size as the view, the view does not show scrollbars. To get
> scrollbars to show, you need to change the size of the scene so that it
> fully includes the objects after you have manipulated them.
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
--
Thanks & Regards
S. Dasmahapatra
B.E. (Aeronautics-Aerodynamics)
Bangalore, India
Ph:91-9900839788
Office:91-80-66470248
mail id : sujan.dasmahapatra at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090820/68997906/attachment.html
More information about the Qt-interest-old
mailing list