[Qt-interest] is it possible to paint outside the QWidget rect?
Jason H
scorp1us at yahoo.com
Tue Jun 29 16:48:31 CEST 2010
No.
But it should not be hard to identify your parent and tell it what you want it to draw. The only problem is that it draws itself first, so your approach needs to not infinitely recurse. I'd queue up drawing commands in an additional painter, the on the parent's draw, draw that as well. Then anytime you modify what your parent is to draw yo have to tell it to redraw, making sure you don't repeat your commands (your commands are already in its queue)
----- Original Message ----
From: Pritam Ghanghas <pritam_ghanghas at infosys.com>
To: "qt-interest at trolltech.com" <qt-interest at trolltech.com>
Sent: Tue, June 29, 2010 8:02:40 AM
Subject: [Qt-interest] is it possible to paint outside the QWidget rect?
Hi
I have a case when a child widget needs to paint more than the its own
rect (outside its clip area ).
Is there a way to disabled clipping in QWidgets?
In particular my problem is that paintEvent's rect is already clipped to
the parent rect. Can I somehow get the unclipped rect ?
--
Thanks,
Pritam
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are not
to copy, disclose, or distribute this e-mail or its contents to any other person and
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken
every reasonable precaution to minimize this risk, but is not liable for any damage
you may sustain as a result of any virus in this e-mail. You should carry out your
own virus checks before opening the e-mail or attachment. Infosys reserves the
right to monitor and review the content of all messages sent to or from this e-mail
address. Messages sent to or from this e-mail address may be stored on the
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
_______________________________________________
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