Skip to content

RTreeWidget

Class in GUI Module
Header: #include <src/gui/RTreeWidget.h>
Inherits: QTreeWidget

All rights reserved.

This file is part of the QCAD project.

QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with QCAD. Tree widget with some additional functionality for icons.

Scriptable: This class is available in script environments.

\generateScriptShell

RTreeWidget(QWidget *parent=0)
Default Constructor.
virtual ~RTreeWidget()
Destructor.
QTreeWidgetItem * getActiveItem()
QModelIndex getIndex(QTreeWidgetItem *item, int column=0)
void scrollToData(const QString &data, Qt::ItemDataRole role)
void setSelectableColumn(int c)
virtual void contextMenuEvent(QContextMenuEvent *e)
virtual void mouseMoveEvent(QMouseEvent *e)
virtual void mousePressEvent(QMouseEvent *e)
virtual void mouseReleaseEvent(QMouseEvent *e)
virtual void resizeEvent(QResizeEvent *event)
int indexPressed
QVariant itemPressedData
int selectableColumn
void contextMenuRequested(QTreeWidgetItem *item, int column)
void itemColumnClicked(QTreeWidgetItem *item, int column)

RTreeWidget::RTreeWidget(QWidget *parent=0)

Default Constructor.

virtual RTreeWidget::~RTreeWidget()

virtual

Destructor.

QTreeWidgetItem * RTreeWidget::getActiveItem()

Returns: The active item. Either the selected or current item. This is the item an action is applied for.

QModelIndex RTreeWidget::getIndex(QTreeWidgetItem *item, int column=0)

inline

void RTreeWidget::scrollToData(const QString &data, Qt::ItemDataRole role)

void RTreeWidget::setSelectableColumn(int c)

inline

virtual void RTreeWidget::contextMenuEvent(QContextMenuEvent *e)

virtual protected

virtual void RTreeWidget::mouseMoveEvent(QMouseEvent *e)

virtual protected

virtual void RTreeWidget::mousePressEvent(QMouseEvent *e)

virtual protected

virtual void RTreeWidget::mouseReleaseEvent(QMouseEvent *e)

virtual protected

virtual void RTreeWidget::resizeEvent(QResizeEvent *event)

virtual protected

int RTreeWidget::indexPressed

private

QVariant RTreeWidget::itemPressedData

private

int RTreeWidget::selectableColumn

private

void RTreeWidget::contextMenuRequested(QTreeWidgetItem *item, int column)

void RTreeWidget::itemColumnClicked(QTreeWidgetItem *item, int column)