because sometimes geometry has been set on the platform window and
sometimes it's only stored in the QWindow geometry, waiting for the
asynchronous confirmation. So it should call QWindow::geometry()
instead.
Change-Id: Ifa54792be31440108fae212240a46ae269393eb7
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
bool QQuickWindowPrivate::isRenderable() const
{
- if (geometry.width() <= 0 || geometry.height() <= 0)
+ const QQuickWindow *q = q_func();
+ QRect geom = q->geometry();
+ if (geom.width() <= 0 || geom.height() <= 0)
return false;
// Change to be applied after the visibility property is integrated in qtbase:
// return visibility != QWindow::Hidden || (renderWithoutShowing && platformWindow);
// Temporary version which is implementation-agnostic but slightly less efficient:
- const QQuickWindow *q = q_func();
return q->isVisible() || (renderWithoutShowing && platformWindow);
}