Qt 4.8
LayoutItem Class Reference

The LayoutItem element allows declarative UI elements to be placed inside Qt's Graphics View layouts. More...

Detailed Description

The LayoutItem element allows declarative UI elements to be placed inside Qt's Graphics View layouts.

Since
4.7

LayoutItem is a variant of Item with additional size hint properties. These properties provide the size hints necessary for items to work in conjunction with Qt Graphics View Framework{Graphics View} layout classes such as QGraphicsLinearLayout and QGraphicsGridLayout. The Qt layout mechanisms will resize the LayoutItem as appropriate, taking its size hints into account, and you can propagate this to the other elements in your UI via anchors and bindings.

This is a QGraphicsLayoutItem subclass, and its properties merely expose the QGraphicsLayoutItem functionality to QML.

The LayoutItem example demonstrates how a LayoutItem can be used within a Graphics View Framework{Graphics View} scene.


The documentation for this class was generated from the following file: