diff options
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/util/qmlview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/util/qmlview.cpp b/src/declarative/util/qmlview.cpp index 805612e..98642e9 100644 --- a/src/declarative/util/qmlview.cpp +++ b/src/declarative/util/qmlview.cpp @@ -538,7 +538,7 @@ void QmlView::resizeEvent(QResizeEvent *e) d->root->setWidth(width()); d->root->setHeight(height()); } - setSceneRect(rect()); + setSceneRect(QRectF(0, 0, d->root->width(), d->root->height())); QGraphicsView::resizeEvent(e); } |