diff options
author | Liang Qi <liang.qi@qt.io> | 2018-01-20 22:34:43 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2018-01-20 22:36:19 +0100 |
commit | 65a97fccc67ae7f3df1900e1419955f939a49b9f (patch) | |
tree | a8fd0e119b585123e77e3b2574f2d82a5474eb28 /examples/widgets/doc/src/graphicsview-anchorlayout.qdoc | |
parent | 5e8bc07cb2ded1f5f74435411de666f419869514 (diff) | |
parent | 1303327a713d8f88fd9782e4f887b646d4210f68 (diff) |
Merge remote-tracking branch 'origin/5.10' into dev
Conflicts:
tests/auto/widgets/itemviews/qtreeview/tst_qtreeview.cpp
Change-Id: If089d5010d15c33b3c1f13912d4386207456c1a9
Diffstat (limited to 'examples/widgets/doc/src/graphicsview-anchorlayout.qdoc')
-rw-r--r-- | examples/widgets/doc/src/graphicsview-anchorlayout.qdoc | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/examples/widgets/doc/src/graphicsview-anchorlayout.qdoc b/examples/widgets/doc/src/graphicsview-anchorlayout.qdoc index 95717340d1..bd27a0dc4f 100644 --- a/examples/widgets/doc/src/graphicsview-anchorlayout.qdoc +++ b/examples/widgets/doc/src/graphicsview-anchorlayout.qdoc @@ -35,4 +35,47 @@ class. \image graphicsanchorlayout-example.png + + The basic steps of this example are: + \list + \li Create a QGraphicsScene + \li Create widgets + \li Create a QGraphicsAnchorLayout + \li Create a QGraphicsWidget + \li Add vertical and horizontal anchors between the widgets + \li View the scene with a QGraphicsView object + \endlist + + \section1 Creating a QGraphicsScene + + \quotefromfile graphicsview/anchorlayout/main.cpp + \skipto QGraphicsScene + \printuntil setSceneRect + + \section1 Creating Widgets + + \skipto QGraphicsProxyWidget + \printuntil *g + + \section1 Creating a Layout + + \skipto QGraphicsAnchorLayout + \printuntil l->setSpacing + + \section1 Creating a QGraphicsWidget + + \skipto QGraphicsWidget + \printuntil setLayout(l) + + \section1 Adding Anchors + + \skipto vertical + \printuntil l->addAnchor(f, Qt::AnchorRight + + \section1 Viewing the Scene with QGraphicsView + + \skipto scene.addItem + \printuntil view.show + + \sa {Simple Anchor Layout Example} */ |