summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/graphicsview/anchorlayout/main.cpp1
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;
}