Pane QML Type
Provides a background matching with the application style and theme. More...
Import Statement: | import QtQuick.Controls 2.0 |
Since: | Qt 5.7 |
Inherits: | |
Inherited By: |
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.
Items declared as children of a Pane are automatically parented to the Pane's contentItem. Items created dynamically need to be explicitly parented to the contentItem.
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") } } }
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.