How to set QQuickPaintedItem content offset?
-
QQuickPaintedItem has non virtual contentsBoundingRect method.
But bounding rect could be extended only in size. Is there the way to modify bounding rect by shifting it?
For example, item rect is [0, 0, 10, 10]. I want to set bounding rect to [-5, -5, 15, 15]. Is it possible?
-
The boundingRect function return an QRectF value. This should be work.
@
QRectF temp = boundingRect();
temp.setX(-5);
temp.setY(-5);
@ -
Please add [SOLVED] to your thread title if the problem is solved so other forum members can quickly see if this thread helped or not.