[Qt-interest] Unable to bring Scrollbar Properties in MDI subwindow of type QGraphicsView

Kamakshi Sivaraman Kamakshi.Sivaraman at lntinfotech.com
Wed May 6 14:47:21 CEST 2009


Hi,

Actually I tried using all the flags required to set the scrollbar for 
QGraphics View.

The code snippet is follows :

ChildFileApp::ChildFileApp(QList<structSysLogParams> 
lstSysLogParams,QGraphicsView *parent)
        :QGraphicsView(parent)
{
 
        setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
        setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);

        .   ..    ..     ..     ..     ... 
}

Where ChildFileApp is the mdi subwindow called from MainWindow to show in 
MDI Area.
I am painting in the GraphicsView and that painting is exceeding the size 
of the Subwindow file , then automatically the scroll bars should come, 
But its not happening.

I hope this will give you some idea that what actually i am trying to say.


Thanks & Regards,
S.KAMAKSHI
Larsen & Toubro Infotech Limited
Whitefield,
Bangalore -560066

Larsen & Toubro Infotech Ltd.
www.Lntinfotech.com

This Document is classified as: 

L&T Infotech Proprietary   L&T Infotech Confidential   L&T Infotech 
Internal Use Only   L&T Infotech General Business 

This Email may contain confidential or privileged information for the 
intended recipient (s) If you are not the intended recipient, please do 
not use or disseminate the information, notify the sender and delete it 
from your system. 



John McClurkin <jwm at nei.nih.gov> 
Sent by: qt-interest-bounces at trolltech.com
05/06/2009 05:43 PM

To
qt-interest at trolltech.com
cc

Subject
Re: [Qt-interest] Unable to bring Scrollbar Properties in MDI subwindow of 
type QGraphicsView






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.
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest

______________________________________________________________________



______________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090506/bd4fbf48/attachment.html 


More information about the Qt-interest-old mailing list