[Qt-interest] is it possible to paint outside the QWidget rect?
Pritam Ghanghas
pritam_ghanghas at infosys.com
Tue Jun 29 16:16:05 CEST 2010
> Pritam Ghanghas wrote:
> > 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 ?
> >
> >
>
> I overlay my entire app with a dedicated widget on
> which I do all of my painting to avoid this exact
> issue.
>
> Bill
That is an interesting suggestion Bill. But did you mean "you use the
overlay when you need to draw outside" or "you use overlay for all your
drawings". The second options will become complex because then you will
have to decide "which widget is visible and not obscured by others and
needs drawing" and "what is to be left out because it lies behind some
widget".
Thanks,
Pritam
More information about the Qt-interest-old
mailing list