[Qt-interest] How to apply scroll bars in mdi files.
Sujan Dasmahapatra
sdh at lmglasfiber.com
Wed Apr 22 07:24:36 CEST 2009
You create a widget of QGraphicsView and on that view u draw whatever u
want to draw automatically when ur objects exceed scroll bars will
appear vertical as well as horizontal.set the parent for this
graphicsview as ur mdi subwindow.
Kind regards,
Sujan Dasmahapatra
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Kamakshi
Sivaraman
Sent: Wednesday, April 22, 2009 10:50 AM
To: John McClurkin
Cc: qt-interest-bounces at trolltech.com; qt-interest at trolltech.com
Subject: Re: [Qt-interest] How to apply scroll bars in mdi files.
Hi John,
Thank you for the response. But I still have problem in resolving my
issue.
if I paint on MDI child window or subwindow and if the painting exceeds
the subwindow size.
For Eg: I painted a line in the subwindow and if the size of line
exceeds the size of MDI subwindow then I expect a Horizontal scroll bar
or Vertical scroll bar based on the area painted, but I am not getting
any such scroll bar.Instead I need to use mouse pointer to increase the
size of subwindow and see the diagram.
what I have used is the MDI subwindow is of type widget and it is
inherited by class QScrollArea and MDI window is of type MainWindow.
Can you please suggest me how can i implement this with some example?
Thank you in advance.
With Regards,
S.KAMAKSHI
Larsen & Toubro Infotech Limited
Whitefield,
Bangalore -560066
Larsen & Toubro Infotech Ltd.
www.Lntinfotech.com <http://www.lntinfotech.com/>
This Document is classified as:
[X]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
04/21/2009 07:19 PM
To
qt-interest at trolltech.com
cc
Subject
Re: [Qt-interest] How to apply scroll bars in mdi files.
Kamakshi Sivaraman wrote:
>
> Hi,
>
> I am going through some of the application based on MDI files.I need
to
> create mdi files displaying diagrams at run-time and
> If the size of the diagram exceeds to some size then the mdi file i.e.
> child file should display the diagram with scroll bar without
> increasing the size of mdi file.
> But I unable to get the scroll bars in mdi file but displaying in Main
> window i.e. the parent widget of the mdi file.
> Please give some example based on MDI files.
>
>
> Regards,
> S.KAMAKSHI
You must mean mdi windows, not files. If you want scrollbars in mdi
subwindows, use widgets that have scrollbars as subwindows.
_______________________________________________
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/20090422/372233c5/attachment.html
More information about the Qt-interest-old
mailing list