Notation used in Ruby API documentation
Module: QtWidgets
Description: Binding of QListWidgetItem
Class hierarchy: QListWidgetItem
new QListWidgetItem | new | (QListWidget ptr view = nullptr, int type = QListWidgetItem::Type) | Constructor QListWidgetItem::QListWidgetItem(QListWidget *view, int type) |
new QListWidgetItem | new | (string text, QListWidget ptr view = nullptr, int type = QListWidgetItem::Type) | Constructor QListWidgetItem::QListWidgetItem(const QString &text, QListWidget *view, int type) |
new QListWidgetItem | new | (const QIcon icon, string text, QListWidget ptr view = nullptr, int type = QListWidgetItem::Type) | Constructor QListWidgetItem::QListWidgetItem(const QIcon &icon, const QString &text, QListWidget *view, int type) |
new QListWidgetItem | new | (const QListWidgetItem other) | Constructor QListWidgetItem::QListWidgetItem(const QListWidgetItem &other) |
[const] | bool | < | (const QListWidgetItem other) | Virtual method bool QListWidgetItem::operator<(const QListWidgetItem &other) |
void | _assign | (const QListWidgetItem other) | Assigns another object to self | |
[const] | QListWidgetItem ptr | _const_cast | Returns a non-const reference to self. | |
void | _create | Ensures the C++ object is created | ||
void | _destroy | Explicitly destroys the object | ||
[const] | bool | _destroyed? | Returns a value indicating whether the object was already destroyed | |
[const] | new QListWidgetItem ptr | _dup | Creates a copy of self | |
[const] | bool | _is_const_object? | Returns a value indicating whether the reference is a const reference | |
void | _manage | Marks the object as managed by the script side. | ||
void | _unmanage | Marks the object as no longer owned by the script side. | ||
QListWidgetItem | assign | (const QListWidgetItem other) | Method QListWidgetItem &QListWidgetItem::operator=(const QListWidgetItem &other) | |
[const] | QBrush | background | Method QBrush QListWidgetItem::background() | |
void | background= | (const QBrush brush) | Method void QListWidgetItem::setBackground(const QBrush &brush) | |
[const] | QColor | backgroundColor | Method QColor QListWidgetItem::backgroundColor() | |
void | backgroundColor= | (const QColor color) | Method void QListWidgetItem::setBackgroundColor(const QColor &color) | |
[const] | Qt_CheckState | checkState | Method Qt::CheckState QListWidgetItem::checkState() | |
void | checkState= | (const Qt_CheckState state) | Method void QListWidgetItem::setCheckState(Qt::CheckState state) | |
[const] | QListWidgetItem ptr | clone | Virtual method QListWidgetItem *QListWidgetItem::clone() | |
[const] | variant | data | (int role) | Virtual method QVariant QListWidgetItem::data(int role) |
[const] | new QListWidgetItem ptr | dup | Creates a copy of self | |
[const] | Qt_QFlags_ItemFlag | flags | Method QFlags<Qt::ItemFlag> QListWidgetItem::flags() | |
void | flags= | (Qt_QFlags_ItemFlag flags) | Method void QListWidgetItem::setFlags(QFlags<Qt::ItemFlag> flags) | |
[const] | QFont | font | Method QFont QListWidgetItem::font() | |
void | font= | (const QFont font) | Method void QListWidgetItem::setFont(const QFont &font) | |
[const] | QBrush | foreground | Method QBrush QListWidgetItem::foreground() | |
void | foreground= | (const QBrush brush) | Method void QListWidgetItem::setForeground(const QBrush &brush) | |
[const] | bool | hidden | Method bool QListWidgetItem::isHidden() | |
void | hidden= | (bool hide) | Method void QListWidgetItem::setHidden(bool hide) | |
[const] | QIcon | icon | Method QIcon QListWidgetItem::icon() | |
void | icon= | (const QIcon icon) | Method void QListWidgetItem::setIcon(const QIcon &icon) | |
[const] | bool | isHidden? | Method bool QListWidgetItem::isHidden() | |
[const] | bool | isSelected? | Method bool QListWidgetItem::isSelected() | |
[const] | QListWidget ptr | listWidget | Method QListWidget *QListWidgetItem::listWidget() | |
void | read | (QDataStream in) | Virtual method void QListWidgetItem::read(QDataStream &in) | |
[const] | bool | selected | Method bool QListWidgetItem::isSelected() | |
void | selected= | (bool select) | Method void QListWidgetItem::setSelected(bool select) | |
void | setBackground | (const QBrush brush) | Method void QListWidgetItem::setBackground(const QBrush &brush) | |
void | setBackgroundColor | (const QColor color) | Virtual method void QListWidgetItem::setBackgroundColor(const QColor &color) | |
void | setCheckState | (const Qt_CheckState state) | Method void QListWidgetItem::setCheckState(Qt::CheckState state) | |
void | setData | (int role, variant value) | Virtual method void QListWidgetItem::setData(int role, const QVariant &value) | |
void | setFlags | (Qt_QFlags_ItemFlag flags) | Method void QListWidgetItem::setFlags(QFlags<Qt::ItemFlag> flags) | |
void | setFont | (const QFont font) | Method void QListWidgetItem::setFont(const QFont &font) | |
void | setForeground | (const QBrush brush) | Method void QListWidgetItem::setForeground(const QBrush &brush) | |
void | setHidden | (bool hide) | Method void QListWidgetItem::setHidden(bool hide) | |
void | setIcon | (const QIcon icon) | Method void QListWidgetItem::setIcon(const QIcon &icon) | |
void | setSelected | (bool select) | Method void QListWidgetItem::setSelected(bool select) | |
void | setSizeHint | (const QSize size) | Method void QListWidgetItem::setSizeHint(const QSize &size) | |
void | setStatusTip | (string statusTip) | Method void QListWidgetItem::setStatusTip(const QString &statusTip) | |
void | setText | (string text) | Method void QListWidgetItem::setText(const QString &text) | |
void | setTextAlignment | (int alignment) | Method void QListWidgetItem::setTextAlignment(int alignment) | |
void | setTextColor | (const QColor color) | Method void QListWidgetItem::setTextColor(const QColor &color) | |
void | setToolTip | (string toolTip) | Method void QListWidgetItem::setToolTip(const QString &toolTip) | |
void | setWhatsThis | (string whatsThis) | Method void QListWidgetItem::setWhatsThis(const QString &whatsThis) | |
[const] | QSize | sizeHint | Method QSize QListWidgetItem::sizeHint() | |
void | sizeHint= | (const QSize size) | Method void QListWidgetItem::setSizeHint(const QSize &size) | |
[const] | string | statusTip | Method QString QListWidgetItem::statusTip() | |
void | statusTip= | (string statusTip) | Method void QListWidgetItem::setStatusTip(const QString &statusTip) | |
[const] | string | text | Method QString QListWidgetItem::text() | |
void | text= | (string text) | Method void QListWidgetItem::setText(const QString &text) | |
[const] | int | textAlignment | Method int QListWidgetItem::textAlignment() | |
void | textAlignment= | (int alignment) | Method void QListWidgetItem::setTextAlignment(int alignment) | |
[const] | QColor | textColor | Method QColor QListWidgetItem::textColor() | |
void | textColor= | (const QColor color) | Method void QListWidgetItem::setTextColor(const QColor &color) | |
[const] | string | toolTip | Method QString QListWidgetItem::toolTip() | |
void | toolTip= | (string toolTip) | Method void QListWidgetItem::setToolTip(const QString &toolTip) | |
[const] | int | type | Method int QListWidgetItem::type() | |
[const] | string | whatsThis | Method QString QListWidgetItem::whatsThis() | |
void | whatsThis= | (string whatsThis) | Method void QListWidgetItem::setWhatsThis(const QString &whatsThis) | |
[const] | void | write | (QDataStream out) | Virtual method void QListWidgetItem::write(QDataStream &out) |
void | create | Use of this method is deprecated. Use _create instead | ||
void | destroy | Use of this method is deprecated. Use _destroy instead | ||
[const] | bool | destroyed? | Use of this method is deprecated. Use _destroyed? instead | |
[const] | bool | is_const_object? | Use of this method is deprecated. Use _is_const_object? instead |
< | Signature: [const] bool < (const QListWidgetItem other) Description: Virtual method bool QListWidgetItem::operator<(const QListWidgetItem &other) This method can be reimplemented in a derived class. |
_assign | Signature: void _assign (const QListWidgetItem other) Description: Assigns another object to self |
_const_cast | Signature: [const] QListWidgetItem ptr _const_cast Description: Returns a non-const reference to self. Basically, this method allows turning a const object reference to a non-const one. This method is provided as last resort to remove the constness from an object. Usually there is a good reason for a const object reference, so using this method may have undesired side effects. This method has been introduced in version 0.29.6. |
_create | Signature: void _create Description: Ensures the C++ object is created Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created. |
_destroy | Signature: void _destroy Description: Explicitly destroys the object Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing. |
_destroyed? | Signature: [const] bool _destroyed? Description: Returns a value indicating whether the object was already destroyed This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself. |
_dup | Signature: [const] new QListWidgetItem ptr _dup Description: Creates a copy of self |
_is_const_object? | Signature: [const] bool _is_const_object? Description: Returns a value indicating whether the reference is a const reference This method returns true, if self is a const reference. In that case, only const methods may be called on self. |
_manage | Signature: void _manage Description: Marks the object as managed by the script side. After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required. Usually it's not required to call this method. It has been introduced in version 0.24. |
_unmanage | Signature: void _unmanage Description: Marks the object as no longer owned by the script side. Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur. Usually it's not required to call this method. It has been introduced in version 0.24. |
assign | Signature: QListWidgetItem assign (const QListWidgetItem other) Description: Method QListWidgetItem &QListWidgetItem::operator=(const QListWidgetItem &other) |
background | Signature: [const] QBrush background Description: Method QBrush QListWidgetItem::background() Python specific notes: |
background= | Signature: void background= (const QBrush brush) Description: Method void QListWidgetItem::setBackground(const QBrush &brush) Python specific notes: |
backgroundColor | Signature: [const] QColor backgroundColor Description: Method QColor QListWidgetItem::backgroundColor() Python specific notes: |
backgroundColor= | Signature: void backgroundColor= (const QColor color) Description: Method void QListWidgetItem::setBackgroundColor(const QColor &color) Python specific notes: |
checkState | Signature: [const] Qt_CheckState checkState Description: Method Qt::CheckState QListWidgetItem::checkState() Python specific notes: |
checkState= | Signature: void checkState= (const Qt_CheckState state) Description: Method void QListWidgetItem::setCheckState(Qt::CheckState state) Python specific notes: |
clone | Signature: [const] QListWidgetItem ptr clone Description: Virtual method QListWidgetItem *QListWidgetItem::clone() This method can be reimplemented in a derived class. |
create | Signature: void create Description: Ensures the C++ object is created Use of this method is deprecated. Use _create instead Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created. |
data | Signature: [const] variant data (int role) Description: Virtual method QVariant QListWidgetItem::data(int role) This method can be reimplemented in a derived class. |
destroy | Signature: void destroy Description: Explicitly destroys the object Use of this method is deprecated. Use _destroy instead Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing. |
destroyed? | Signature: [const] bool destroyed? Description: Returns a value indicating whether the object was already destroyed Use of this method is deprecated. Use _destroyed? instead This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself. |
dup | Signature: [const] new QListWidgetItem ptr dup Description: Creates a copy of self Python specific notes: |
flags | Signature: [const] Qt_QFlags_ItemFlag flags Description: Method QFlags<Qt::ItemFlag> QListWidgetItem::flags() Python specific notes: |
flags= | Signature: void flags= (Qt_QFlags_ItemFlag flags) Description: Method void QListWidgetItem::setFlags(QFlags<Qt::ItemFlag> flags) Python specific notes: |
font | Signature: [const] QFont font Description: Method QFont QListWidgetItem::font() Python specific notes: |
font= | Signature: void font= (const QFont font) Description: Method void QListWidgetItem::setFont(const QFont &font) Python specific notes: |
foreground | Signature: [const] QBrush foreground Description: Method QBrush QListWidgetItem::foreground() Python specific notes: |
foreground= | Signature: void foreground= (const QBrush brush) Description: Method void QListWidgetItem::setForeground(const QBrush &brush) Python specific notes: |
hidden | Signature: [const] bool hidden Description: Method bool QListWidgetItem::isHidden() Python specific notes: |
hidden= | Signature: void hidden= (bool hide) Description: Method void QListWidgetItem::setHidden(bool hide) Python specific notes: |
icon | Signature: [const] QIcon icon Description: Method QIcon QListWidgetItem::icon() Python specific notes: |
icon= | Signature: void icon= (const QIcon icon) Description: Method void QListWidgetItem::setIcon(const QIcon &icon) Python specific notes: |
isHidden? | Signature: [const] bool isHidden? Description: Method bool QListWidgetItem::isHidden() Python specific notes: |
isSelected? | Signature: [const] bool isSelected? Description: Method bool QListWidgetItem::isSelected() Python specific notes: |
is_const_object? | Signature: [const] bool is_const_object? Description: Returns a value indicating whether the reference is a const reference Use of this method is deprecated. Use _is_const_object? instead This method returns true, if self is a const reference. In that case, only const methods may be called on self. |
listWidget | Signature: [const] QListWidget ptr listWidget Description: Method QListWidget *QListWidgetItem::listWidget() |
new | (1) Signature: [static] new QListWidgetItem new (QListWidget ptr view = nullptr, int type = QListWidgetItem::Type) Description: Constructor QListWidgetItem::QListWidgetItem(QListWidget *view, int type) This method creates an object of class QListWidgetItem. Python specific notes: |
(2) Signature: [static] new QListWidgetItem new (string text, QListWidget ptr view = nullptr, int type = QListWidgetItem::Type) Description: Constructor QListWidgetItem::QListWidgetItem(const QString &text, QListWidget *view, int type) This method creates an object of class QListWidgetItem. Python specific notes: | |
(3) Signature: [static] new QListWidgetItem new (const QIcon icon, string text, QListWidget ptr view = nullptr, int type = QListWidgetItem::Type) Description: Constructor QListWidgetItem::QListWidgetItem(const QIcon &icon, const QString &text, QListWidget *view, int type) This method creates an object of class QListWidgetItem. Python specific notes: | |
(4) Signature: [static] new QListWidgetItem new (const QListWidgetItem other) Description: Constructor QListWidgetItem::QListWidgetItem(const QListWidgetItem &other) This method creates an object of class QListWidgetItem. Python specific notes: | |
read | Signature: void read (QDataStream in) Description: Virtual method void QListWidgetItem::read(QDataStream &in) This method can be reimplemented in a derived class. |
selected | Signature: [const] bool selected Description: Method bool QListWidgetItem::isSelected() Python specific notes: |
selected= | Signature: void selected= (bool select) Description: Method void QListWidgetItem::setSelected(bool select) Python specific notes: |
setBackground | Signature: void setBackground (const QBrush brush) Description: Method void QListWidgetItem::setBackground(const QBrush &brush) Python specific notes: |
setBackgroundColor | Signature: void setBackgroundColor (const QColor color) Description: Virtual method void QListWidgetItem::setBackgroundColor(const QColor &color) This method can be reimplemented in a derived class. |
setCheckState | Signature: void setCheckState (const Qt_CheckState state) Description: Method void QListWidgetItem::setCheckState(Qt::CheckState state) Python specific notes: |
setData | Signature: void setData (int role, variant value) Description: Virtual method void QListWidgetItem::setData(int role, const QVariant &value) This method can be reimplemented in a derived class. |
setFlags | Signature: void setFlags (Qt_QFlags_ItemFlag flags) Description: Method void QListWidgetItem::setFlags(QFlags<Qt::ItemFlag> flags) Python specific notes: |
setFont | Signature: void setFont (const QFont font) Description: Method void QListWidgetItem::setFont(const QFont &font) Python specific notes: |
setForeground | Signature: void setForeground (const QBrush brush) Description: Method void QListWidgetItem::setForeground(const QBrush &brush) Python specific notes: |
setHidden | Signature: void setHidden (bool hide) Description: Method void QListWidgetItem::setHidden(bool hide) Python specific notes: |
setIcon | Signature: void setIcon (const QIcon icon) Description: Method void QListWidgetItem::setIcon(const QIcon &icon) Python specific notes: |
setSelected | Signature: void setSelected (bool select) Description: Method void QListWidgetItem::setSelected(bool select) Python specific notes: |
setSizeHint | Signature: void setSizeHint (const QSize size) Description: Method void QListWidgetItem::setSizeHint(const QSize &size) Python specific notes: |
setStatusTip | Signature: void setStatusTip (string statusTip) Description: Method void QListWidgetItem::setStatusTip(const QString &statusTip) Python specific notes: |
setText | Signature: void setText (string text) Description: Method void QListWidgetItem::setText(const QString &text) Python specific notes: |
setTextAlignment | Signature: void setTextAlignment (int alignment) Description: Method void QListWidgetItem::setTextAlignment(int alignment) Python specific notes: |
setTextColor | Signature: void setTextColor (const QColor color) Description: Method void QListWidgetItem::setTextColor(const QColor &color) Python specific notes: |
setToolTip | Signature: void setToolTip (string toolTip) Description: Method void QListWidgetItem::setToolTip(const QString &toolTip) Python specific notes: |
setWhatsThis | Signature: void setWhatsThis (string whatsThis) Description: Method void QListWidgetItem::setWhatsThis(const QString &whatsThis) Python specific notes: |
sizeHint | Signature: [const] QSize sizeHint Description: Method QSize QListWidgetItem::sizeHint() Python specific notes: |
sizeHint= | Signature: void sizeHint= (const QSize size) Description: Method void QListWidgetItem::setSizeHint(const QSize &size) Python specific notes: |
statusTip | Signature: [const] string statusTip Description: Method QString QListWidgetItem::statusTip() Python specific notes: |
statusTip= | Signature: void statusTip= (string statusTip) Description: Method void QListWidgetItem::setStatusTip(const QString &statusTip) Python specific notes: |
text | Signature: [const] string text Description: Method QString QListWidgetItem::text() Python specific notes: |
text= | Signature: void text= (string text) Description: Method void QListWidgetItem::setText(const QString &text) Python specific notes: |
textAlignment | Signature: [const] int textAlignment Description: Method int QListWidgetItem::textAlignment() Python specific notes: |
textAlignment= | Signature: void textAlignment= (int alignment) Description: Method void QListWidgetItem::setTextAlignment(int alignment) Python specific notes: |
textColor | Signature: [const] QColor textColor Description: Method QColor QListWidgetItem::textColor() Python specific notes: |
textColor= | Signature: void textColor= (const QColor color) Description: Method void QListWidgetItem::setTextColor(const QColor &color) Python specific notes: |
toolTip | Signature: [const] string toolTip Description: Method QString QListWidgetItem::toolTip() Python specific notes: |
toolTip= | Signature: void toolTip= (string toolTip) Description: Method void QListWidgetItem::setToolTip(const QString &toolTip) Python specific notes: |
type | Signature: [const] int type Description: Method int QListWidgetItem::type() |
whatsThis | Signature: [const] string whatsThis Description: Method QString QListWidgetItem::whatsThis() Python specific notes: |
whatsThis= | Signature: void whatsThis= (string whatsThis) Description: Method void QListWidgetItem::setWhatsThis(const QString &whatsThis) Python specific notes: |
write | Signature: [const] void write (QDataStream out) Description: Virtual method void QListWidgetItem::write(QDataStream &out) This method can be reimplemented in a derived class. |