[Qt-interest] painting on a widget
Darryl Hunter
darryl.hunter at codersoft.com.au
Sun Jan 11 08:12:13 CET 2009
Hi all,
I have a widget that has several layouts / widgets displayed on it. All is
good.
Under a certain circumstance I want to draw a circle on the widget on top of
everything else. So in my widgets paintEvent() method I do:
QPainter painter
painter.begin (this);
helper->paint (&painter, event);
painter.end
Within my Helper::paint() method, I do:
painter->drawEllipse (.).
However it draws this ellipse behind the other components of the widget. I
want it to be in front of.
With the Graphics Scene there is a Z value which would take care of this.
How do I do this with the normal painter?
Thanks.
Darryl
----------------------------------------------------------------------------
Darryl Hunter
Director
CoderSoft Pty Ltd
(m) 04 5060 6804
darryl.hunter at codersoft.com.au
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090111/df9a4eb5/attachment.html
More information about the Qt-interest-old
mailing list