TChips Class

标签控件 More...

Header: #include <TChips>
Inherits: QScrollArea and TUiInterface

Public Functions

TChips(QWidget *parent = nullptr)
~TChips()
void refreshLayout(int width)
void setChipHeight(int height)

Public Slots

void addChip()
QStringList chips()
void clearChips()
QWidget *createChip(const QString &text)
virtual QVariant getData(const QString &key = "", const QVariant &options = QVariant())
void removeChip(int index)
void setChips(const QStringList &iChipsList)
virtual void setData(const QString &key, const QVariant &data)

Signals

void editingFinished()
virtual void notification(const QString &type, const QVariant &data = QVariant(), const QString &uuid = QStringLiteral( "" ))
void valueChanged()

Reimplemented Protected Functions

virtual void keyReleaseEvent(QKeyEvent *event)
virtual void mousePressEvent(QMouseEvent *event)
virtual void resizeEvent(QResizeEvent *event)

Additional Inherited Members

Detailed Description

* * *

标签控件

Member Function Documentation

TChips::TChips(QWidget *parent = nullptr)

Default constructs an instance of TChips.

TChips::~TChips()

Destroys the instance of TChips.

[slot] void TChips::addChip()

[slot] QStringList TChips::chips()

See also setChips().

[slot] void TChips::clearChips()

[slot] QWidget *TChips::createChip(const QString &text)

[signal] void TChips::editingFinished()

[virtual slot] QVariant TChips::getData(const QString &key = "", const QVariant &options = QVariant())

[virtual protected] void TChips::keyReleaseEvent(QKeyEvent *event)

[virtual protected] void TChips::mousePressEvent(QMouseEvent *event)

[virtual signal] void TChips::notification(const QString &type, const QVariant &data = QVariant(), const QString &uuid = QStringLiteral( "" ))

void TChips::refreshLayout(int width)

[slot] void TChips::removeChip(int index)

[virtual protected] void TChips::resizeEvent(QResizeEvent *event)

void TChips::setChipHeight(int height)

[slot] void TChips::setChips(const QStringList &iChipsList)

See also chips().

[virtual slot] void TChips::setData(const QString &key, const QVariant &data)

[signal] void TChips::valueChanged()