Pane QML Type

A pane control. More...

Import Statement: import Qt.labs.controls 1.0
Inherits:

Control

Inherited By:

Frame

Properties

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

contentChildren : list<Item>

This property holds the list of content children.

See also Item::children.

[default] contentData : list<Object>

This property holds the list of content data.

See also Item::data.

contentHeight : real

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.

contentWidth : real

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.

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/archives/qt-5.6/qml-qt-labs-controls-pane.html