QIfStandardItem Class

The QIfStandardItem is the base class of a row in the QIfPagingModel model and derived models. More...

Header: #include <QIfStandardItem>
qmake: QT += interfaceframework
In QML: StandardItem

Properties

  • data : QVariantMap
  • id : QString
  • name : const QString
  • type : const QString

Public Functions

virtual QVariantMap data() const
virtual QString id() const
virtual QString name() const
virtual void setData(const QVariantMap &data)
virtual void setId(const QString &id)
virtual QString type() const
bool operator!=(const QIfStandardItem &other) const
bool operator==(const QIfStandardItem &other) const

Detailed Description

Property Documentation

data : QVariantMap

A generic data field which can hold any data.

This can be moved for storing additional data which is not part of the base class. E.g. the "composer" of an audio track.

Access functions:

virtual QVariantMap data() const
virtual void setData(const QVariantMap &data)

id : QString

A unique identifier, which can be used to identify this item.

This is mainly used by the backend to implement filtering or browsing.

Access functions:

virtual QString id() const
virtual void setId(const QString &id)

[read-only] name : const QString

The name of the item. E.g. The name of a contact in a addressbook, or the artist-name in a list of artists.

Access functions:

virtual QString name() const

[read-only] type : const QString

The type of the item. E.g. "artist", "track", "contact".

Access functions:

virtual QString type() const

Member Function Documentation

bool QIfStandardItem::operator!=(const QIfStandardItem &other) const

Returns true if this item is not equal to other; otherwise returns false.

See also operator==().

bool QIfStandardItem::operator==(const QIfStandardItem &other) const

Returns true if this item is equal to other; otherwise returns false.

See also operator!=().

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.