HeaderFooterLayout QML Type
Replicates a little part of what Page does. More...
Import Statement: | import org.kde.kirigami.layouts |
Properties
- contentItem : Item
- footer : Item
- header : Item
Methods
- void forceLayout()
Detailed Description
It's a container with 3 properties, header, contentItem and footer which will be laid out oone on top of each other. It works better than a ColumnLayout when the elements are to be defined by properties by the user, which would require ugly reparenting dances and container items to maintain the layout well behaving.
Property Documentation
contentItem : Item |
This property holds the visual content Item.
It will be resized both in width and height with the layout resizing. Its height will be resized to still have room for the heder and footer
footer : Item |
This property holds the page footer item.
The footer item is positioned to the bottom, and resized to the width of the page. The default value is null.
header : Item |
This property holds the page header item.
The header item is positioned to the top, and resized to the width of the page. The default value is null.
Method Documentation
void forceLayout() |
HeaderFooterLayout normally positions its header, footer and contentItem once per frame (at polish event). This method forces the it to recalculate the layout immediately.