[Qt-interest] How to draw a line on the mainwindow
David Boddie
david.boddie at nokia.com
Thu Feb 5 18:22:40 CET 2009
Sujan Dasmahapatra wrote:
> 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....
This question keeps coming up, so I decided to write a small example that
shows one way to do what you want - or at least what I think you want.
You can find it on the QtCentre Wiki:
http://wiki.qtcentre.org/index.php?title=Widget_Overlay
If anyone feels that they could add something to the example or make
corrections to it, please feel free to edit the page or add comments to
the associated discussion page.
David
--
David Boddie
Senior Technical Writer
Nokia, Qt Software
More information about the Qt-interest-old
mailing list