KLayout 0.29.8 (2024-10-28 63dd591e5) [master]

API reference - Class QTreeWidgetItem

Notation used in Ruby API documentation

Module: QtWidgets

Description: Binding of QTreeWidgetItem

Class hierarchy: QTreeWidgetItem

Sub-classes: ChildIndicatorPolicy, QFlags_ChildIndicatorPolicy

Public constructors

new QTreeWidgetItemnew(int type = QTreeWidgetItem::Type)Constructor QTreeWidgetItem::QTreeWidgetItem(int type)
new QTreeWidgetItemnew(string[] strings,
int type = QTreeWidgetItem::Type)
Constructor QTreeWidgetItem::QTreeWidgetItem(const QStringList &strings, int type)
new QTreeWidgetItemnew(QTreeWidget ptr view,
int type = QTreeWidgetItem::Type)
Constructor QTreeWidgetItem::QTreeWidgetItem(QTreeWidget *view, int type)
new QTreeWidgetItemnew(QTreeWidget ptr view,
string[] strings,
int type = QTreeWidgetItem::Type)
Constructor QTreeWidgetItem::QTreeWidgetItem(QTreeWidget *view, const QStringList &strings, int type)
new QTreeWidgetItemnew(QTreeWidget ptr view,
QTreeWidgetItem ptr after,
int type = QTreeWidgetItem::Type)
Constructor QTreeWidgetItem::QTreeWidgetItem(QTreeWidget *view, QTreeWidgetItem *after, int type)
new QTreeWidgetItemnew(QTreeWidgetItem ptr parent,
int type = QTreeWidgetItem::Type)
Constructor QTreeWidgetItem::QTreeWidgetItem(QTreeWidgetItem *parent, int type)
new QTreeWidgetItemnew(QTreeWidgetItem ptr parent,
string[] strings,
int type = QTreeWidgetItem::Type)
Constructor QTreeWidgetItem::QTreeWidgetItem(QTreeWidgetItem *parent, const QStringList &strings, int type)
new QTreeWidgetItemnew(QTreeWidgetItem ptr parent,
QTreeWidgetItem ptr after,
int type = QTreeWidgetItem::Type)
Constructor QTreeWidgetItem::QTreeWidgetItem(QTreeWidgetItem *parent, QTreeWidgetItem *after, int type)

Public methods

[const]bool<(const QTreeWidgetItem other)Virtual method bool QTreeWidgetItem::operator<(const QTreeWidgetItem &other)
void_assign(const QTreeWidgetItem other)Assigns another object to self
[const]QTreeWidgetItem ptr_const_castReturns a non-const reference to self.
void_createEnsures the C++ object is created
void_destroyExplicitly destroys the object
[const]bool_destroyed?Returns a value indicating whether the object was already destroyed
[const]new QTreeWidgetItem ptr_dupCreates a copy of self
[const]bool_is_const_object?Returns a value indicating whether the reference is a const reference
void_manageMarks the object as managed by the script side.
void_unmanageMarks the object as no longer owned by the script side.
voidaddChild(QTreeWidgetItem ptr child)Method void QTreeWidgetItem::addChild(QTreeWidgetItem *child)
voidaddChildren(QTreeWidgetItem ptr[] children)Method void QTreeWidgetItem::addChildren(const QList<QTreeWidgetItem*> &children)
QTreeWidgetItemassign(const QTreeWidgetItem other)Method QTreeWidgetItem &QTreeWidgetItem::operator=(const QTreeWidgetItem &other)
[const]QBrushbackground(int column)Method QBrush QTreeWidgetItem::background(int column)
[const]QColorbackgroundColor(int column)Method QColor QTreeWidgetItem::backgroundColor(int column)
[const]Qt_CheckStatecheckState(int column)Method Qt::CheckState QTreeWidgetItem::checkState(int column)
[const]QTreeWidgetItem ptrchild(int index)Method QTreeWidgetItem *QTreeWidgetItem::child(int index)
[const]intchildCountMethod int QTreeWidgetItem::childCount()
[const]QTreeWidgetItem_ChildIndicatorPolicychildIndicatorPolicyMethod QTreeWidgetItem::ChildIndicatorPolicy QTreeWidgetItem::childIndicatorPolicy()
voidchildIndicatorPolicy=(const QTreeWidgetItem_ChildIndicatorPolicy policy)Method void QTreeWidgetItem::setChildIndicatorPolicy(QTreeWidgetItem::ChildIndicatorPolicy policy)
[const]QTreeWidgetItem ptrcloneVirtual method QTreeWidgetItem *QTreeWidgetItem::clone()
[const]intcolumnCountMethod int QTreeWidgetItem::columnCount()
[const]variantdata(int column,
int role)
Virtual method QVariant QTreeWidgetItem::data(int column, int role)
[const]booldisabledMethod bool QTreeWidgetItem::isDisabled()
voiddisabled=(bool disabled)Method void QTreeWidgetItem::setDisabled(bool disabled)
[const]new QTreeWidgetItem ptrdupCreates a copy of self
[const]boolexpandedMethod bool QTreeWidgetItem::isExpanded()
voidexpanded=(bool expand)Method void QTreeWidgetItem::setExpanded(bool expand)
[const]boolfirstColumnSpannedMethod bool QTreeWidgetItem::isFirstColumnSpanned()
voidfirstColumnSpanned=(bool span)Method void QTreeWidgetItem::setFirstColumnSpanned(bool span)
[const]Qt_QFlags_ItemFlagflagsMethod QFlags<Qt::ItemFlag> QTreeWidgetItem::flags()
voidflags=(Qt_QFlags_ItemFlag flags)Method void QTreeWidgetItem::setFlags(QFlags<Qt::ItemFlag> flags)
[const]QFontfont(int column)Method QFont QTreeWidgetItem::font(int column)
[const]QBrushforeground(int column)Method QBrush QTreeWidgetItem::foreground(int column)
[const]boolhiddenMethod bool QTreeWidgetItem::isHidden()
voidhidden=(bool hide)Method void QTreeWidgetItem::setHidden(bool hide)
[const]QIconicon(int column)Method QIcon QTreeWidgetItem::icon(int column)
[const]intindexOfChild(QTreeWidgetItem ptr child)Method int QTreeWidgetItem::indexOfChild(QTreeWidgetItem *child)
voidinsertChild(int index,
QTreeWidgetItem ptr child)
Method void QTreeWidgetItem::insertChild(int index, QTreeWidgetItem *child)
voidinsertChildren(int index,
QTreeWidgetItem ptr[] children)
Method void QTreeWidgetItem::insertChildren(int index, const QList<QTreeWidgetItem*> &children)
[const]boolisDisabled?Method bool QTreeWidgetItem::isDisabled()
[const]boolisExpanded?Method bool QTreeWidgetItem::isExpanded()
[const]boolisFirstColumnSpanned?Method bool QTreeWidgetItem::isFirstColumnSpanned()
[const]boolisHidden?Method bool QTreeWidgetItem::isHidden()
[const]boolisSelected?Method bool QTreeWidgetItem::isSelected()
[const]QTreeWidgetItem ptrparentMethod QTreeWidgetItem *QTreeWidgetItem::parent()
voidread(QDataStream in)Virtual method void QTreeWidgetItem::read(QDataStream &in)
voidremoveChild(QTreeWidgetItem ptr child)Method void QTreeWidgetItem::removeChild(QTreeWidgetItem *child)
[const]boolselectedMethod bool QTreeWidgetItem::isSelected()
voidselected=(bool select)Method void QTreeWidgetItem::setSelected(bool select)
voidsetBackground(int column,
const QBrush brush)
Method void QTreeWidgetItem::setBackground(int column, const QBrush &brush)
voidsetBackgroundColor(int column,
const QColor color)
Method void QTreeWidgetItem::setBackgroundColor(int column, const QColor &color)
voidsetCheckState(int column,
const Qt_CheckState state)
Method void QTreeWidgetItem::setCheckState(int column, Qt::CheckState state)
voidsetChildIndicatorPolicy(const QTreeWidgetItem_ChildIndicatorPolicy policy)Method void QTreeWidgetItem::setChildIndicatorPolicy(QTreeWidgetItem::ChildIndicatorPolicy policy)
voidsetData(int column,
int role,
variant value)
Virtual method void QTreeWidgetItem::setData(int column, int role, const QVariant &value)
voidsetDisabled(bool disabled)Method void QTreeWidgetItem::setDisabled(bool disabled)
voidsetExpanded(bool expand)Method void QTreeWidgetItem::setExpanded(bool expand)
voidsetFirstColumnSpanned(bool span)Method void QTreeWidgetItem::setFirstColumnSpanned(bool span)
voidsetFlags(Qt_QFlags_ItemFlag flags)Method void QTreeWidgetItem::setFlags(QFlags<Qt::ItemFlag> flags)
voidsetFont(int column,
const QFont font)
Method void QTreeWidgetItem::setFont(int column, const QFont &font)
voidsetForeground(int column,
const QBrush brush)
Method void QTreeWidgetItem::setForeground(int column, const QBrush &brush)
voidsetHidden(bool hide)Method void QTreeWidgetItem::setHidden(bool hide)
voidsetIcon(int column,
const QIcon icon)
Method void QTreeWidgetItem::setIcon(int column, const QIcon &icon)
voidsetSelected(bool select)Method void QTreeWidgetItem::setSelected(bool select)
voidsetSizeHint(int column,
const QSize size)
Method void QTreeWidgetItem::setSizeHint(int column, const QSize &size)
voidsetStatusTip(int column,
string statusTip)
Method void QTreeWidgetItem::setStatusTip(int column, const QString &statusTip)
voidsetText(int column,
string text)
Method void QTreeWidgetItem::setText(int column, const QString &text)
voidsetTextAlignment(int column,
int alignment)
Method void QTreeWidgetItem::setTextAlignment(int column, int alignment)
voidsetTextColor(int column,
const QColor color)
Method void QTreeWidgetItem::setTextColor(int column, const QColor &color)
voidsetToolTip(int column,
string toolTip)
Method void QTreeWidgetItem::setToolTip(int column, const QString &toolTip)
voidsetWhatsThis(int column,
string whatsThis)
Method void QTreeWidgetItem::setWhatsThis(int column, const QString &whatsThis)
[const]QSizesizeHint(int column)Method QSize QTreeWidgetItem::sizeHint(int column)
voidsortChildren(int column,
const Qt_SortOrder order)
Method void QTreeWidgetItem::sortChildren(int column, Qt::SortOrder order)
[const]stringstatusTip(int column)Method QString QTreeWidgetItem::statusTip(int column)
new QTreeWidgetItem ptrtakeChild(int index)Method QTreeWidgetItem *QTreeWidgetItem::takeChild(int index)
QTreeWidgetItem ptr[]takeChildrenMethod QList<QTreeWidgetItem*> QTreeWidgetItem::takeChildren()
[const]stringtext(int column)Method QString QTreeWidgetItem::text(int column)
[const]inttextAlignment(int column)Method int QTreeWidgetItem::textAlignment(int column)
[const]QColortextColor(int column)Method QColor QTreeWidgetItem::textColor(int column)
[const]stringtoolTip(int column)Method QString QTreeWidgetItem::toolTip(int column)
[const]QTreeWidget ptrtreeWidgetMethod QTreeWidget *QTreeWidgetItem::treeWidget()
[const]inttypeMethod int QTreeWidgetItem::type()
[const]stringwhatsThis(int column)Method QString QTreeWidgetItem::whatsThis(int column)
[const]voidwrite(QDataStream out)Virtual method void QTreeWidgetItem::write(QDataStream &out)

Public static methods and constants

[static,const]QTreeWidgetItem_ChildIndicatorPolicyDontShowIndicatorEnum constant QTreeWidgetItem::DontShowIndicator
[static,const]QTreeWidgetItem_ChildIndicatorPolicyDontShowIndicatorWhenChildlessEnum constant QTreeWidgetItem::DontShowIndicatorWhenChildless
[static,const]QTreeWidgetItem_ChildIndicatorPolicyShowIndicatorEnum constant QTreeWidgetItem::ShowIndicator

Protected methods (static, non-static and constructors)

voidemitDataChangedMethod void QTreeWidgetItem::emitDataChanged()

Deprecated methods (protected, public, static, non-static and constructors)

voidcreateUse of this method is deprecated. Use _create instead
voiddestroyUse of this method is deprecated. Use _destroy instead
[const]booldestroyed?Use of this method is deprecated. Use _destroyed? instead
[const]boolis_const_object?Use of this method is deprecated. Use _is_const_object? instead

Detailed description

<

Signature: [const] bool < (const QTreeWidgetItem other)

Description: Virtual method bool QTreeWidgetItem::operator<(const QTreeWidgetItem &other)

This method can be reimplemented in a derived class.

DontShowIndicator

Signature: [static,const] QTreeWidgetItem_ChildIndicatorPolicy DontShowIndicator

Description: Enum constant QTreeWidgetItem::DontShowIndicator

Python specific notes:
The object exposes a readable attribute 'DontShowIndicator'. This is the getter.

DontShowIndicatorWhenChildless

Signature: [static,const] QTreeWidgetItem_ChildIndicatorPolicy DontShowIndicatorWhenChildless

Description: Enum constant QTreeWidgetItem::DontShowIndicatorWhenChildless

Python specific notes:
The object exposes a readable attribute 'DontShowIndicatorWhenChildless'. This is the getter.

ShowIndicator

Signature: [static,const] QTreeWidgetItem_ChildIndicatorPolicy ShowIndicator

Description: Enum constant QTreeWidgetItem::ShowIndicator

Python specific notes:
The object exposes a readable attribute 'ShowIndicator'. This is the getter.

_assign

Signature: void _assign (const QTreeWidgetItem other)

Description: Assigns another object to self

_const_cast

Signature: [const] QTreeWidgetItem 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 QTreeWidgetItem 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.

addChild

Signature: void addChild (QTreeWidgetItem ptr child)

Description: Method void QTreeWidgetItem::addChild(QTreeWidgetItem *child)

addChildren

Signature: void addChildren (QTreeWidgetItem ptr[] children)

Description: Method void QTreeWidgetItem::addChildren(const QList<QTreeWidgetItem*> &children)

assign

Signature: QTreeWidgetItem assign (const QTreeWidgetItem other)

Description: Method QTreeWidgetItem &QTreeWidgetItem::operator=(const QTreeWidgetItem &other)

background

Signature: [const] QBrush background (int column)

Description: Method QBrush QTreeWidgetItem::background(int column)

backgroundColor

Signature: [const] QColor backgroundColor (int column)

Description: Method QColor QTreeWidgetItem::backgroundColor(int column)

checkState

Signature: [const] Qt_CheckState checkState (int column)

Description: Method Qt::CheckState QTreeWidgetItem::checkState(int column)

child

Signature: [const] QTreeWidgetItem ptr child (int index)

Description: Method QTreeWidgetItem *QTreeWidgetItem::child(int index)

childCount

Signature: [const] int childCount

Description: Method int QTreeWidgetItem::childCount()

childIndicatorPolicy

Signature: [const] QTreeWidgetItem_ChildIndicatorPolicy childIndicatorPolicy

Description: Method QTreeWidgetItem::ChildIndicatorPolicy QTreeWidgetItem::childIndicatorPolicy()

Python specific notes:
The object exposes a readable attribute 'childIndicatorPolicy'. This is the getter.

childIndicatorPolicy=

Signature: void childIndicatorPolicy= (const QTreeWidgetItem_ChildIndicatorPolicy policy)

Description: Method void QTreeWidgetItem::setChildIndicatorPolicy(QTreeWidgetItem::ChildIndicatorPolicy policy)

Python specific notes:
The object exposes a writable attribute 'childIndicatorPolicy'. This is the setter.

clone

Signature: [const] QTreeWidgetItem ptr clone

Description: Virtual method QTreeWidgetItem *QTreeWidgetItem::clone()

This method can be reimplemented in a derived class.

columnCount

Signature: [const] int columnCount

Description: Method int QTreeWidgetItem::columnCount()

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 column, int role)

Description: Virtual method QVariant QTreeWidgetItem::data(int column, 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.

disabled

Signature: [const] bool disabled

Description: Method bool QTreeWidgetItem::isDisabled()

Python specific notes:
The object exposes a readable attribute 'disabled'. This is the getter.

disabled=

Signature: void disabled= (bool disabled)

Description: Method void QTreeWidgetItem::setDisabled(bool disabled)

Python specific notes:
The object exposes a writable attribute 'disabled'. This is the setter.

dup

Signature: [const] new QTreeWidgetItem ptr dup

Description: Creates a copy of self

Python specific notes:
This method also implements '__copy__' and '__deepcopy__'.

emitDataChanged

Signature: void emitDataChanged

Description: Method void QTreeWidgetItem::emitDataChanged()

This method is protected and can only be called from inside a derived class.

expanded

Signature: [const] bool expanded

Description: Method bool QTreeWidgetItem::isExpanded()

Python specific notes:
The object exposes a readable attribute 'expanded'. This is the getter.

expanded=

Signature: void expanded= (bool expand)

Description: Method void QTreeWidgetItem::setExpanded(bool expand)

Python specific notes:
The object exposes a writable attribute 'expanded'. This is the setter.

firstColumnSpanned

Signature: [const] bool firstColumnSpanned

Description: Method bool QTreeWidgetItem::isFirstColumnSpanned()

Python specific notes:
The object exposes a readable attribute 'firstColumnSpanned'. This is the getter.

firstColumnSpanned=

Signature: void firstColumnSpanned= (bool span)

Description: Method void QTreeWidgetItem::setFirstColumnSpanned(bool span)

Python specific notes:
The object exposes a writable attribute 'firstColumnSpanned'. This is the setter.

flags

Signature: [const] Qt_QFlags_ItemFlag flags

Description: Method QFlags<Qt::ItemFlag> QTreeWidgetItem::flags()

Python specific notes:
The object exposes a readable attribute 'flags'. This is the getter.

flags=

Signature: void flags= (Qt_QFlags_ItemFlag flags)

Description: Method void QTreeWidgetItem::setFlags(QFlags<Qt::ItemFlag> flags)

Python specific notes:
The object exposes a writable attribute 'flags'. This is the setter.

font

Signature: [const] QFont font (int column)

Description: Method QFont QTreeWidgetItem::font(int column)

foreground

Signature: [const] QBrush foreground (int column)

Description: Method QBrush QTreeWidgetItem::foreground(int column)

hidden

Signature: [const] bool hidden

Description: Method bool QTreeWidgetItem::isHidden()

Python specific notes:
The object exposes a readable attribute 'hidden'. This is the getter.

hidden=

Signature: void hidden= (bool hide)

Description: Method void QTreeWidgetItem::setHidden(bool hide)

Python specific notes:
The object exposes a writable attribute 'hidden'. This is the setter.

icon

Signature: [const] QIcon icon (int column)

Description: Method QIcon QTreeWidgetItem::icon(int column)

indexOfChild

Signature: [const] int indexOfChild (QTreeWidgetItem ptr child)

Description: Method int QTreeWidgetItem::indexOfChild(QTreeWidgetItem *child)

insertChild

Signature: void insertChild (int index, QTreeWidgetItem ptr child)

Description: Method void QTreeWidgetItem::insertChild(int index, QTreeWidgetItem *child)

insertChildren

Signature: void insertChildren (int index, QTreeWidgetItem ptr[] children)

Description: Method void QTreeWidgetItem::insertChildren(int index, const QList<QTreeWidgetItem*> &children)

isDisabled?

Signature: [const] bool isDisabled?

Description: Method bool QTreeWidgetItem::isDisabled()

Python specific notes:
The object exposes a readable attribute 'disabled'. This is the getter.

isExpanded?

Signature: [const] bool isExpanded?

Description: Method bool QTreeWidgetItem::isExpanded()

Python specific notes:
The object exposes a readable attribute 'expanded'. This is the getter.

isFirstColumnSpanned?

Signature: [const] bool isFirstColumnSpanned?

Description: Method bool QTreeWidgetItem::isFirstColumnSpanned()

Python specific notes:
The object exposes a readable attribute 'firstColumnSpanned'. This is the getter.

isHidden?

Signature: [const] bool isHidden?

Description: Method bool QTreeWidgetItem::isHidden()

Python specific notes:
The object exposes a readable attribute 'hidden'. This is the getter.

isSelected?

Signature: [const] bool isSelected?

Description: Method bool QTreeWidgetItem::isSelected()

Python specific notes:
The object exposes a readable attribute 'selected'. This is the getter.

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.

new

(1) Signature: [static] new QTreeWidgetItem new (int type = QTreeWidgetItem::Type)

Description: Constructor QTreeWidgetItem::QTreeWidgetItem(int type)

This method creates an object of class QTreeWidgetItem.

Python specific notes:
This method is the default initializer of the object.

(2) Signature: [static] new QTreeWidgetItem new (string[] strings, int type = QTreeWidgetItem::Type)

Description: Constructor QTreeWidgetItem::QTreeWidgetItem(const QStringList &strings, int type)

This method creates an object of class QTreeWidgetItem.

Python specific notes:
This method is the default initializer of the object.

(3) Signature: [static] new QTreeWidgetItem new (QTreeWidget ptr view, int type = QTreeWidgetItem::Type)

Description: Constructor QTreeWidgetItem::QTreeWidgetItem(QTreeWidget *view, int type)

This method creates an object of class QTreeWidgetItem.

Python specific notes:
This method is the default initializer of the object.

(4) Signature: [static] new QTreeWidgetItem new (QTreeWidget ptr view, string[] strings, int type = QTreeWidgetItem::Type)

Description: Constructor QTreeWidgetItem::QTreeWidgetItem(QTreeWidget *view, const QStringList &strings, int type)

This method creates an object of class QTreeWidgetItem.

Python specific notes:
This method is the default initializer of the object.

(5) Signature: [static] new QTreeWidgetItem new (QTreeWidget ptr view, QTreeWidgetItem ptr after, int type = QTreeWidgetItem::Type)

Description: Constructor QTreeWidgetItem::QTreeWidgetItem(QTreeWidget *view, QTreeWidgetItem *after, int type)

This method creates an object of class QTreeWidgetItem.

Python specific notes:
This method is the default initializer of the object.

(6) Signature: [static] new QTreeWidgetItem new (QTreeWidgetItem ptr parent, int type = QTreeWidgetItem::Type)

Description: Constructor QTreeWidgetItem::QTreeWidgetItem(QTreeWidgetItem *parent, int type)

This method creates an object of class QTreeWidgetItem.

Python specific notes:
This method is the default initializer of the object.

(7) Signature: [static] new QTreeWidgetItem new (QTreeWidgetItem ptr parent, string[] strings, int type = QTreeWidgetItem::Type)

Description: Constructor QTreeWidgetItem::QTreeWidgetItem(QTreeWidgetItem *parent, const QStringList &strings, int type)

This method creates an object of class QTreeWidgetItem.

Python specific notes:
This method is the default initializer of the object.

(8) Signature: [static] new QTreeWidgetItem new (QTreeWidgetItem ptr parent, QTreeWidgetItem ptr after, int type = QTreeWidgetItem::Type)

Description: Constructor QTreeWidgetItem::QTreeWidgetItem(QTreeWidgetItem *parent, QTreeWidgetItem *after, int type)

This method creates an object of class QTreeWidgetItem.

Python specific notes:
This method is the default initializer of the object.

parent

Signature: [const] QTreeWidgetItem ptr parent

Description: Method QTreeWidgetItem *QTreeWidgetItem::parent()

read

Signature: void read (QDataStream in)

Description: Virtual method void QTreeWidgetItem::read(QDataStream &in)

This method can be reimplemented in a derived class.

removeChild

Signature: void removeChild (QTreeWidgetItem ptr child)

Description: Method void QTreeWidgetItem::removeChild(QTreeWidgetItem *child)

selected

Signature: [const] bool selected

Description: Method bool QTreeWidgetItem::isSelected()

Python specific notes:
The object exposes a readable attribute 'selected'. This is the getter.

selected=

Signature: void selected= (bool select)

Description: Method void QTreeWidgetItem::setSelected(bool select)

Python specific notes:
The object exposes a writable attribute 'selected'. This is the setter.

setBackground

Signature: void setBackground (int column, const QBrush brush)

Description: Method void QTreeWidgetItem::setBackground(int column, const QBrush &brush)

setBackgroundColor

Signature: void setBackgroundColor (int column, const QColor color)

Description: Method void QTreeWidgetItem::setBackgroundColor(int column, const QColor &color)

setCheckState

Signature: void setCheckState (int column, const Qt_CheckState state)

Description: Method void QTreeWidgetItem::setCheckState(int column, Qt::CheckState state)

setChildIndicatorPolicy

Signature: void setChildIndicatorPolicy (const QTreeWidgetItem_ChildIndicatorPolicy policy)

Description: Method void QTreeWidgetItem::setChildIndicatorPolicy(QTreeWidgetItem::ChildIndicatorPolicy policy)

Python specific notes:
The object exposes a writable attribute 'childIndicatorPolicy'. This is the setter.

setData

Signature: void setData (int column, int role, variant value)

Description: Virtual method void QTreeWidgetItem::setData(int column, int role, const QVariant &value)

This method can be reimplemented in a derived class.

setDisabled

Signature: void setDisabled (bool disabled)

Description: Method void QTreeWidgetItem::setDisabled(bool disabled)

Python specific notes:
The object exposes a writable attribute 'disabled'. This is the setter.

setExpanded

Signature: void setExpanded (bool expand)

Description: Method void QTreeWidgetItem::setExpanded(bool expand)

Python specific notes:
The object exposes a writable attribute 'expanded'. This is the setter.

setFirstColumnSpanned

Signature: void setFirstColumnSpanned (bool span)

Description: Method void QTreeWidgetItem::setFirstColumnSpanned(bool span)

Python specific notes:
The object exposes a writable attribute 'firstColumnSpanned'. This is the setter.

setFlags

Signature: void setFlags (Qt_QFlags_ItemFlag flags)

Description: Method void QTreeWidgetItem::setFlags(QFlags<Qt::ItemFlag> flags)

Python specific notes:
The object exposes a writable attribute 'flags'. This is the setter.

setFont

Signature: void setFont (int column, const QFont font)

Description: Method void QTreeWidgetItem::setFont(int column, const QFont &font)

setForeground

Signature: void setForeground (int column, const QBrush brush)

Description: Method void QTreeWidgetItem::setForeground(int column, const QBrush &brush)

setHidden

Signature: void setHidden (bool hide)

Description: Method void QTreeWidgetItem::setHidden(bool hide)

Python specific notes:
The object exposes a writable attribute 'hidden'. This is the setter.

setIcon

Signature: void setIcon (int column, const QIcon icon)

Description: Method void QTreeWidgetItem::setIcon(int column, const QIcon &icon)

setSelected

Signature: void setSelected (bool select)

Description: Method void QTreeWidgetItem::setSelected(bool select)

Python specific notes:
The object exposes a writable attribute 'selected'. This is the setter.

setSizeHint

Signature: void setSizeHint (int column, const QSize size)

Description: Method void QTreeWidgetItem::setSizeHint(int column, const QSize &size)

setStatusTip

Signature: void setStatusTip (int column, string statusTip)

Description: Method void QTreeWidgetItem::setStatusTip(int column, const QString &statusTip)

setText

Signature: void setText (int column, string text)

Description: Method void QTreeWidgetItem::setText(int column, const QString &text)

setTextAlignment

Signature: void setTextAlignment (int column, int alignment)

Description: Method void QTreeWidgetItem::setTextAlignment(int column, int alignment)

setTextColor

Signature: void setTextColor (int column, const QColor color)

Description: Method void QTreeWidgetItem::setTextColor(int column, const QColor &color)

setToolTip

Signature: void setToolTip (int column, string toolTip)

Description: Method void QTreeWidgetItem::setToolTip(int column, const QString &toolTip)

setWhatsThis

Signature: void setWhatsThis (int column, string whatsThis)

Description: Method void QTreeWidgetItem::setWhatsThis(int column, const QString &whatsThis)

sizeHint

Signature: [const] QSize sizeHint (int column)

Description: Method QSize QTreeWidgetItem::sizeHint(int column)

sortChildren

Signature: void sortChildren (int column, const Qt_SortOrder order)

Description: Method void QTreeWidgetItem::sortChildren(int column, Qt::SortOrder order)

statusTip

Signature: [const] string statusTip (int column)

Description: Method QString QTreeWidgetItem::statusTip(int column)

takeChild

Signature: new QTreeWidgetItem ptr takeChild (int index)

Description: Method QTreeWidgetItem *QTreeWidgetItem::takeChild(int index)

takeChildren

Signature: QTreeWidgetItem ptr[] takeChildren

Description: Method QList<QTreeWidgetItem*> QTreeWidgetItem::takeChildren()

text

Signature: [const] string text (int column)

Description: Method QString QTreeWidgetItem::text(int column)

textAlignment

Signature: [const] int textAlignment (int column)

Description: Method int QTreeWidgetItem::textAlignment(int column)

textColor

Signature: [const] QColor textColor (int column)

Description: Method QColor QTreeWidgetItem::textColor(int column)

toolTip

Signature: [const] string toolTip (int column)

Description: Method QString QTreeWidgetItem::toolTip(int column)

treeWidget

Signature: [const] QTreeWidget ptr treeWidget

Description: Method QTreeWidget *QTreeWidgetItem::treeWidget()

type

Signature: [const] int type

Description: Method int QTreeWidgetItem::type()

whatsThis

Signature: [const] string whatsThis (int column)

Description: Method QString QTreeWidgetItem::whatsThis(int column)

write

Signature: [const] void write (QDataStream out)

Description: Virtual method void QTreeWidgetItem::write(QDataStream &out)

This method can be reimplemented in a derived class.