Absolute.Controls

The Absolute.Controls package contains some extra controls

Import statement:

import Absolute.Controls 0.1

FlatMenu

FlatMenu has the same API as Menu but allow to be placed inside the main window (Qt’s Menu is always a popup)

FlatMenuItem

FlatMenuItem has the same API as MenuItem but allow to be placed inside a FlatMenu

TabView

TabView combines a TabBar and StackLayout to facilitate the creation of tab based interfaces.

TabView implements the Container API, you can either add TabItem declaratively or programmatically (using addItem, insertItem and so on)

TabItem

Item that can be added to a TabView.

Properties

  • string text: Text used for the TabButton text property
  • Icon icon: icon group used for the TabButton icon property
  • Component view: the view component that will be inserted in the StackLayout
  • bool closable: specifies whether tab is closable. If True, a close button will be show next to the tab button’s text
  • bool autoClose: true to automatically close the tab when the close button is pressed. Otherwise, you need to call close() manually.
  • bool closeAccepted: specifies whether the close request was acccepted. The TabButton and it’s corresponding view will be removed immediately when this property becomes True.

Signals

  • onCloseRequest: this signal is emitted when the user clicked on the close button.

Methods

  • close(): close this tab