Search for usage in LXR

TabButton Class Reference
Inheritance diagram for TabButton:


bool closeButtonVisible
alias content
alias leftContent
alias rightContent
alias underlayContent


void closeClicked ()
void rightClicked (var mouse)

Detailed Description

A expanded implementation of the QQC2 TabButton with a predefined horizontal layout.

This control inherits from QQC2 TabButton, to checkout its inherited properties refer to the Qt Docs.

By default the layout of this control is divided into three sections. Extra items can be appended to the left and right side areas, while the center area is reserved for the title text.

See also

Definition at line 16 of file TabButton.qml.

Property Documentation

◆ closeButtonVisible

bool TabButton::closeButtonVisible

Whether a close button should be shown in the far left area.

If it is visible and pressed, a signal is emitted.

See also
closeClicked By default this is set to true.

Definition at line 45 of file TabButton.qml.

◆ content

list< QtObject > TabButton::content

An alias exposed to append more elements into the main container of this control.

This is the default property

Definition at line 23 of file TabButton.qml.

◆ leftContent

list< QtObject > TabButton::leftContent

Use this to append items to the left area of this control.

Definition at line 28 of file TabButton.qml.

◆ rightContent

list< QtObject > TabButton::rightContent

Use this to append items to the right area of this control.

Definition at line 33 of file TabButton.qml.

◆ underlayContent

list< QtObject > TabButton::underlayContent

Use this to add items between the background and the control contents.

Definition at line 38 of file TabButton.qml.

Member Function Documentation

◆ closeClicked

void TabButton::closeClicked ( )

Emitted when the close button is pressed.

See also

◆ rightClicked

void TabButton::rightClicked ( var mouse)

Emitted when the area of the control has been right clicked.

This can be consumed in order to open a contextual menu, for example.

mouseThe object with information of the event.

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 Fri May 24 2024 12:01:40 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.