ApplicationWindow QML Type
Provides a top-level application window. More...
Import Statement: | import QtQuick.Controls 1.2 |
Since: | Qt 5.1 |
Inherits: |
Properties
- contentItem : ContentItem
- menuBar : MenuBar
- statusBar : Item
- toolBar : Item
Detailed Description
ApplicationWindow is a Window that adds convenience for positioning items, such as MenuBar, ToolBar, and StatusBar in a platform independent manner.
ApplicationWindow { id: window menuBar: MenuBar { Menu { MenuItem {...} } Menu { MenuItem {...} } } toolBar: ToolBar { RowLayout { anchors.fill: parent ToolButton {...} } } TabView { id: myContent anchors.fill: parent ... } }
Property Documentation
This group holds the size constraints of the content item. This is the area between the ToolBar and the StatusBar. The ApplicationWindow will use this as input when calculating the effective size constraints of the actual window. It holds these 6 properties for describing the minimum, implicit and maximum sizes:
Grouped property | Description |
---|---|
contentItem.minimumWidth | The minimum width of the content item. |
contentItem.minimumHeight | The minimum height of the content item. |
contentItem.implicitWidth | The implicit width of the content item. |
contentItem.implicitHeight | The implicit height of the content item. |
contentItem.maximumWidth | The maximum width of the content item. |
contentItem.maximumHeight | The maximum height of the content item. |
statusBar : Item |
toolBar : Item |