NavigationTabButton

Search for usage in LXR

NavigationTabButton Class Reference

Inherits QtQuick.Templates.TabButton, and QtQuick::Templates::QtQuick::TemplatesabButton.

Properties

int tabIndex
 

Detailed Description

Navigation buttons to be used for the NavigationTabBar component.

It supplies its own padding, and also supports using the QQC2 AbstractButton display property to be used in column lists.

Alternative way to the "actions" property on NavigationTabBar, as it can be used with Repeater to generate buttons from models.

Example usage:

Kirigami.NavigationTabBar {
id: navTabBar
Kirigami.NavigationTabButton {
visible: true
icon.name: "document-save"
text: `test ${tabIndex + 1}`
QQC2.ButtonGroup.group: navTabBar.tabGroup
}
Kirigami.NavigationTabButton {
visible: false
icon.name: "document-send"
text: `test ${tabIndex + 1}`
QQC2.ButtonGroup.group: navTabBar.tabGroup
}
actions: [
Kirigami.Action {
visible: true
icon.name: "edit-copy"
icon.height: 32
icon.width: 32
text: `test 3`
checked: true
},
Kirigami.Action {
visible: true
icon.name: "edit-cut"
text: `test 4`
checkable: true
},
Kirigami.Action {
visible: false
icon.name: "edit-paste"
text: `test 5`
},
Kirigami.Action {
visible: true
icon.source: "../logo.png"
text: `test 6`
checkable: true
}
]
}
int tabIndex
This property tells the index of this tab within the tab bar.
KGuiItem test()
Since
5.87
org.kde.kirigami 2.19

Definition at line 68 of file NavigationTabButton.qml.

Property Documentation

◆ tabIndex

int NavigationTabButton::tabIndex
read

This property tells the index of this tab within the tab bar.

Remarks
This property is read-only

Definition at line 74 of file NavigationTabButton.qml.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Apr 27 2024 22:13:10 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.