[Qt-interest] is it possible to paint outside the QWidget rect?
Pritam Ghanghas
pritam_ghanghas at infosys.com
Wed Jun 30 08:15:04 CEST 2010
thanks Jason,
Well my UI requirement changed in between. And I dont need to do that
anymore. But I will keep your idea in mind next time I come across such
a problem.
--
Thanks,
Pritam
On Tue, 2010-06-29 at 20:18 +0530, Jason H wrote:
> 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 ?
>
>
More information about the Qt-interest-old
mailing list