Page Contents

Topics

Classes

QLTab Class

#include <QLayers/qltab.h>

Inherits: QLWidget

Public Functions

QLTab(const QLGraphic& icon, const QString& text, QWidget* parent = nullptr)
QLTab(const QString& text, QWidget* parent = nullptr)
QLButton* close_button() const
QLLabel* icon_label() const
QLStatePool* status_states() const
QLLabel* text_label() const

Protected Functions

bool eventFilter(QObject* object, QEvent* event) override

Signals

void clicked()
void closed()

Detailed Description

QLTab Example

A QLTab is a QLWidget that labels another widget and can be clicked by the user to switch between different widgets.

Member Function Documentation

QLTab(const QLGraphic& icon, const QString& text, QWidget* parent = nullptr)

Constructs a tab labeled with an icon and text.

QLTab(const QString& text, QWidget* parent = nullptr)

Constructs a tab labeled with text.

void clicked()

Signal

This signal is emitted when the tab is clicked.

QLButton* close_button() const

Returns a pointer to the tab's close button.

void closed()

Signal

This signal is emitted when the tab is closed.

QLLabel* icon_label() const

Returns a pointer to the tab's icon label.

QLLabel* status_states() const

Returns a pointer to the tab's status state pool.

QLLabel* text_label() const

Returns a pointer to the tab's text label.