Qt 4.8: QGraphicsGridLayout Example

Qt Reference Documentation

# QGraphicsGridLayout Example

Files:

- declarative/cppextensions/qgraphicslayouts/qgraphicsgridlayout/gridlayout.cpp
- declarative/cppextensions/qgraphicslayouts/qgraphicsgridlayout/gridlayout.h
- declarative/cppextensions/qgraphicslayouts/qgraphicsgridlayout/qml/qgraphicsgridlayout/qgraphicsgridlayout.qml
- declarative/cppextensions/qgraphicslayouts/qgraphicsgridlayout/main.cpp
- declarative/cppextensions/qgraphicslayouts/qgraphicsgridlayout/gridlayout.qrc
- declarative/cppextensions/qgraphicslayouts/qgraphicsgridlayout/qgraphicsgridlayout.pro

This example shows how to use QGraphicsGridLayout to lay out QML items. This is useful if you need to integrate Qt Graphics View layouts with QML.