diff options
Diffstat (limited to 'examples/graphicsview')
-rw-r--r-- | examples/graphicsview/anchorlayout/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/graphicsview/anchorlayout/main.cpp b/examples/graphicsview/anchorlayout/main.cpp index a4bf1d0..3e19f18 100644 --- a/examples/graphicsview/anchorlayout/main.cpp +++ b/examples/graphicsview/anchorlayout/main.cpp @@ -56,6 +56,7 @@ static QGraphicsProxyWidget *createItem(const QSizeF &minimum = QSizeF(100.0, 10 w->setPreferredSize(preferred); w->setMaximumSize(maximum); + w->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred); return w; } |