Pane QML Type
A pane control. More...
Properties
- contentChildren : list<Item>
- contentData : list<Object>
- contentHeight : real
- contentWidth : real
Detailed Description
Pane provides a background color that matches with the application style and theme. Pane does not provide a layout of its own, but requires you to position its contents, for instance by creating a RowLayout or a ColumnLayout.
If only a single item is used within a Pane, it will resize to fit the implicit size of its contained item. This makes it particularly suitable for use together with layouts.
Pane { ColumnLayout { anchors.fill: parent CheckBox { text: qsTr("E-mail") } CheckBox { text: qsTr("Calendar") } CheckBox { text: qsTr("Contacts") } } }
Note: Types in the Qt.labs module are not guaranteed to remain compatible in future versions.
See also Customizing Pane and Container Controls.
Property Documentation
This property holds the list of content children.
See also Item::children.
This property holds the list of content data.
See also Item::data.
This property holds the content height. It is used for calculating the total implicit height of the pane.
Note: If only a single item is used within the pane, the implicit height of its contained item is used as the content height.
This property holds the content width. It is used for calculating the total implicit width of the pane.
Note: If only a single item is used within the pane, the implicit width of its contained item is used as the content width.