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) |
- 11 public functions inherited from QScrollArea
- 20 public functions inherited from QAbstractScrollArea
- 14 public functions inherited from QFrame
- 213 public functions inherited from QWidget
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) |
- 9 public slots inherited from TUiInterface
- 19 public slots inherited from QWidget
Signals
| void | editingFinished() |
| virtual void | notification(const QString &type, const QVariant &data = QVariant(), const QString &uuid = QStringLiteral( "" )) |
| void | valueChanged() |
- 1 signal inherited from TUiInterface
- 3 signals inherited from QWidget
Reimplemented Protected Functions
| virtual void | keyReleaseEvent(QKeyEvent *event) |
| virtual void | mousePressEvent(QMouseEvent *event) |
| virtual void | resizeEvent(QResizeEvent *event) |
- 5 protected functions inherited from QScrollArea
- 2 protected functions inherited from TUiInterface
- 20 protected functions inherited from QAbstractScrollArea
- 4 protected functions inherited from QFrame
- 35 protected functions inherited from QWidget
Additional Inherited Members
- 2 properties inherited from QScrollArea
- 3 properties inherited from QAbstractScrollArea
- 6 properties inherited from QFrame
- 58 properties inherited from QWidget
- 5 static public members inherited from QWidget
- 5 protected functions inherited from QScrollArea
- 2 protected functions inherited from TUiInterface
- 20 protected functions inherited from QAbstractScrollArea
- 4 protected functions inherited from QFrame
- 35 protected functions inherited from QWidget
- 1 protected slot inherited from QWidget
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().