summaryrefslogtreecommitdiffstats
path: root/examples/graphicsview/anchorlayout/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/graphicsview/anchorlayout/main.cpp')
-rw-r--r--examples/graphicsview/anchorlayout/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/graphicsview/anchorlayout/main.cpp b/examples/graphicsview/anchorlayout/main.cpp
index f898d1d245..389bc9e791 100644
--- a/examples/graphicsview/anchorlayout/main.cpp
+++ b/examples/graphicsview/anchorlayout/main.cpp
@@ -122,8 +122,8 @@ int main(int argc, char **argv)
scene.addItem(w);
scene.setBackgroundBrush(Qt::darkGreen);
- QGraphicsView *view = new QGraphicsView(&scene);
- view->show();
+ QGraphicsView view(&scene);
+ view.show();
return app.exec();
}