QPaintEvent ignore automatic clipping
Unsolved
General and Desktop
-
-
@Dariusz
My guess:-
If you construct your own
QPainter
call the necessary (larger)setClipRect()
and/orsetCipRegion()
. -
If you override
QWidget::paintEvent(QPaintEvent *event)
substitute your ownQPaintEvent
with (larger)QRect
/QRegion
before passing on.
Not sure whether you will have other problems (such as "artefacts" being shown) if you make a widget paint outside its
boundingRect()
. -
-
Hi,
Do you mean draw on a different widget ? If so, you can't. What you can do is use a larger widget so you have a larger surface to use.