[Qt-interest] is it possible to paint outside the QWidget rect?
william.crocker at analog.com
william.crocker at analog.com
Tue Jun 29 16:55:10 CEST 2010
Pritam Ghanghas wrote:
>> 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".
>
I use it all of the time.
But, yes, my widgets more tile than overlap
so I do not have the "what should be left out"
problem.
Bill
More information about the Qt-interest-old
mailing list