Commit 6379b703 authored by Michael Winkelmann's avatar Michael Winkelmann

Fix draw children for custom items

parent 8150619d
...@@ -170,18 +170,13 @@ void QmlPrinter::paintItem(QQuickItem *item, QQuickWindow *window, ...@@ -170,18 +170,13 @@ void QmlPrinter::paintItem(QQuickItem *item, QQuickWindow *window,
painter->drawImage(rect, imageGrabResult->image(), rect); painter->drawImage(rect, imageGrabResult->image(), rect);
ready = true; ready = true;
}); });
drawChildren = false;
} else { } else {
ready = true; ready = true;
drawChildren = false;
} }
while(!ready) { qGuiApp->processEvents(); } while(!ready) { qGuiApp->processEvents(); }
// windowImage.save(QString(item->metaObject()->className()) + ".jpg");
} }
// drawChildren = false; drawChildren = false;
} }
} }
......
Markdown is supported
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