[Qt-interest] How to apply scroll bars in mdi files.
John McClurkin
jwm at nei.nih.gov
Wed Apr 22 14:24:21 CEST 2009
Kamakshi Sivaraman wrote:
>
> 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.
Just what does this mean? What exactly are you trying?
>
> Can you please suggest me how can i implement this with some example?
The mdi example in Qt/examples/mainwindow/mdi adds QTextEdit widgets as
subwindows of a QMdiArea and these QTextEdit widgets display scroll bars
as needed. Start there.
>
> 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:
>
> 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
>
> ______________________________________________________________________
>
>
> ______________________________________________________________________
More information about the Qt-interest-old
mailing list