Commit cec82a13 authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner: Fix clipping render bug

Clipping is happen over the bounding rectangle, so should provide the
clipped bounding rectangle.

Change-Id: I602da312a7ca327def378a887a75782c61cc680d
Reviewed-by: default avatarThomas Hartmann <>
parent ea5169a1
......@@ -137,9 +137,9 @@ QImage GraphicalNodeInstance::renderImage() const
QRectF boundingRect = boundingRectWithStepChilds(quickItem());
QRectF renderBoundingRect = boundingRect();
QImage renderImage = designerSupport()->renderImageForItem(quickItem(), boundingRect, boundingRect.size().toSize());
QImage renderImage = designerSupport()->renderImageForItem(quickItem(), renderBoundingRect, renderBoundingRect.size().toSize());
renderImage = renderImage.convertToFormat(QImage::Format_ARGB32_Premultiplied);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment