[Qt-interest] How to draw a line on the mainwindow
Alexandre Beraud
aberaud at infflux.com
Wed Feb 4 15:46:35 CET 2009
Hi,
Do you mean the central widget of the main window ? Remember that if you
draw on a widget (via paintEvent()) that has children widgets, those
will be drawn OVER the parent widget. If you have an empty central
widget you can reimplement its paintEvent() and draw there.
Regards,
Alex
Sujan Dasmahapatra a écrit :
>
> Dear Friends
>
> I am finding some difficulty in creating a line on the mainwindow…..I
> have the full view with a menubar,toolbar,statusbar,treeview,console
> window and the mainwindow which is a widget from QWidget.Now I want to
> draw a line on the main window.I tried with a class derived from
> QWidget but that draws a line on a separate widget.But I want draw a
> line on the mainwindow,i.e where the client will work……………How could I
> achieve this please let me know….
>
>
>
> Kind regards,
> LM Glasfiber R&D (India) Pvt. Ltd.
>
> Sujan Dasmahapatra
> Project Engineer - CFD
>
> Telephone: +91 80 66470248
> Mobile: 09900839788
> E-mail: sdh at lmglasfiber.com <mailto:sdh at lmglasfiber.com>
>
>
>
>
>
>
>
>
>
> --------------------------------------------------------------
>
> This e-mail and any attachments are confidential. If you are not the
> named or intended recipient, please notify the sender immediately and
> do not disclose the contents to any other person, use it for any
> purpose or store or copy the information in any medium. Any
> unauthorized disclosure, use or storage is prohibited and might be
> unlawful.
>
> ------------------------------------------------------------------------
> -------------------------------------------------
>
> This E-mail and any attachments are confidential. If you are not the
> named or intended receipient, please notify the sender immediately and
> do not disclose the contents to any other person, use it for any
> purpose or store or copy the information in any medium. Any
> unauthorized disclosure, use or storage is prohibited and might be
> unlawful.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
--
BERAUD Alexandre
Ingénieur Développement
Infflux - Informatique & Flux
Tel: 01 49 57 92 00 - Fax : 01 49 57 92 01
Mail: aberaud at infflux.com
Visitez notre site : www.infflux.com
More information about the Qt-interest-old
mailing list