Frame QML Type | Qt Labs Controls 5.6

Qt 5.6 | Qt Labs Controls | QML Types | Frame QML Type

Qt 5.6.3 Reference Documentation

# Frame QML Type

A frame control. More...

Import Statement: | import Qt.labs.controls 1.0
Inherits: | Pane
Inherited By: | GroupBox and ToolBar

- List of all members, including inherited members

## Properties

- frame : Item

## Detailed Description

Frame is used to layout a logical group of controls together, within a visual frame. Frame 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 Frame, it will resize to fit the implicit size of its contained item. This makes it particularly suitable for use together with layouts.

      Frame {
          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 Frame and Container Controls.

## Property Documentation

frame : Item

This property holds the visual frame item.

See also Customizing Frame.