Home · All Classes · alphabetical Classes List · Modules · Functions ·

QxtTreeWidget Class Reference
[Gui]

An extended tree widget. More...

Signals

Public Member Functions

Properties

Friends


Detailed Description

An extended tree widget.

QxtTreeWidget offers an optional top level item decoration and most commonly requested signals.

qxttreewidget.png

QxtTreeWidget with Qxt::Menulike and Qxt::Buttonlike decoration styles, respectively.

Note:
Requires Qt 4.2 or newer.


Constructor & Destructor Documentation

QxtTreeWidget::QxtTreeWidget ( QWidget *  parent = 0 ) [explicit]

Constructs a new QxtTreeWidget with parent.


QxtTreeWidget::~QxtTreeWidget ( ) [virtual]

Destructs the tree widget.



Member Function Documentation

QxtTreeWidget::itemEditingStarted ( QTreeWidgetItem *  item ) [signal]

This signal is emitted immediately after the editing of item has been started.

See also:
itemEditingFinished()


QxtTreeWidget::itemEditingFinished ( QTreeWidgetItem *  item ) [signal]

This signal is emitted immediately after the editing of item has been finished.

See also:
itemEditingStarted()


QxtTreeWidget::itemCheckStateChanged ( QxtTreeWidgetItem item ) [signal]

This signal is emitted whenever the check state of item has changed.

Note:
Use QxtTreeWidgetItems in order to enable this feature.
See also:
QxtTreeWidgetItem



Property Documentation

bool QxtTreeWidget::branchesDrawn [read, write]

This property holds whether the branches of the tree are drawn.

The default value is true.


Qxt::DecorationStyle QxtTreeWidget::decorationStyle [read, write]

This property holds the top level item decoration style.

Top level items are decorated according to this property. The default value is Qxt::NoDecoration.

Note:
Setting the property to anything else than Qxt::NoDecoration disables root decoration, sets the column count to 1 and hides the header.
See also:
Qxt::DecorationStyle QxtItemDelegate


Qt::TextElideMode QxtTreeWidget::elideMode [read, write]

This property holds the text elide mode.

The text of a decorated top level item is elided according to this property. The default value is Qt::ElideMiddle.

Note:
The property has effect only for decorated top level items.
See also:
decorationStyle



(c) 2007A.Picciani and A.Higerd LGPL
libqxt 0.2