Hi All,

I'd like to paint part of a drawing flipped horizontally on a QPaintDevice.

Here is the problem:

I have a QWidget on which I want to draw a checkbox flipped horizontally at some position inside the widget.
The porblem is that the checkbox is smaller than the size of the QWidget, so painter.translate(-1.0,0) won't work because the checkbox will appear at the opposite side of the widget.

The solution I found actually is to draw the checkbox flipped inside a pixmap of the size of the checkbox (in that case transtale() will do the job) and then draw the pixmap on the widget.

Is there a faster way to this (flip only part the painting inside the widget) without intermediate structures ?

Thanks