QTreeWidget

Undocumented in source but is binding to C++. You might be able to learn more by searching the web for its name.
extern (C++)
class QTreeWidget : QTreeView {}

Constructors

this
this(QWidget parent)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

addTopLevelItem
void addTopLevelItem(QTreeWidgetItem item)
Undocumented in source.
addTopLevelItems
void addTopLevelItems(const(QList!(QTreeWidgetItem)) items)
Undocumented in source.
clear
void clear()
Undocumented in source.
closePersistentEditor
void closePersistentEditor(QTreeWidgetItem item, int column)
Undocumented in source.
collapseItem
void collapseItem(const(QTreeWidgetItem) item)
Undocumented in source.
columnCount
int columnCount()
Undocumented in source.
currentColumn
int currentColumn()
Undocumented in source.
currentItem
QTreeWidgetItem currentItem()
Undocumented in source.
currentItemChanged
void currentItemChanged(QTreeWidgetItem current, QTreeWidgetItem previous)
Undocumented in source.
dropEvent
void dropEvent(QDropEvent event)
Undocumented in source.
editItem
void editItem(QTreeWidgetItem item, int column)
Undocumented in source.
event
bool event(QEvent e)
Undocumented in source.
expandItem
void expandItem(const(QTreeWidgetItem) item)
Undocumented in source.
findItems
QList!(QTreeWidgetItem) findItems(const(QString) text, qt.core.namespace.MatchFlags flags, int column)
Undocumented in source.
headerItem
QTreeWidgetItem headerItem()
Undocumented in source.
indexFromItem
QModelIndex indexFromItem(QTreeWidgetItem item, int column)
Undocumented in source.
indexFromItem
QModelIndex indexFromItem(const(QTreeWidgetItem) item, int column)
Undocumented in source.
indexOfTopLevelItem
int indexOfTopLevelItem(QTreeWidgetItem item)
Undocumented in source.
insertTopLevelItem
void insertTopLevelItem(int index, QTreeWidgetItem item)
Undocumented in source.
insertTopLevelItems
void insertTopLevelItems(int index, const(QList!(QTreeWidgetItem)) items)
Undocumented in source.
invisibleRootItem
QTreeWidgetItem invisibleRootItem()
Undocumented in source.
isFirstItemColumnSpanned
bool isFirstItemColumnSpanned(const(QTreeWidgetItem) item)
Undocumented in source.
isItemExpanded
bool isItemExpanded(const(QTreeWidgetItem) item)
Undocumented in source.
isItemHidden
bool isItemHidden(const(QTreeWidgetItem) item)
Undocumented in source.
isItemSelected
bool isItemSelected(const(QTreeWidgetItem) item)
Undocumented in source.
isPersistentEditorOpen
bool isPersistentEditorOpen(QTreeWidgetItem item, int column)
Undocumented in source.
itemAbove
QTreeWidgetItem itemAbove(const(QTreeWidgetItem) item)
Undocumented in source.
itemActivated
void itemActivated(QTreeWidgetItem item, int column)
Undocumented in source.
itemAt
QTreeWidgetItem itemAt(const(QPoint) p)
Undocumented in source.
itemAt
QTreeWidgetItem itemAt(int ax, int ay)
Undocumented in source. Be warned that the author may not have intended to support it.
itemBelow
QTreeWidgetItem itemBelow(const(QTreeWidgetItem) item)
Undocumented in source.
itemChanged
void itemChanged(QTreeWidgetItem item, int column)
Undocumented in source.
itemClicked
void itemClicked(QTreeWidgetItem item, int column)
Undocumented in source.
itemCollapsed
void itemCollapsed(QTreeWidgetItem item)
Undocumented in source.
itemDoubleClicked
void itemDoubleClicked(QTreeWidgetItem item, int column)
Undocumented in source.
itemEntered
void itemEntered(QTreeWidgetItem item, int column)
Undocumented in source.
itemExpanded
void itemExpanded(QTreeWidgetItem item)
Undocumented in source.
itemFromIndex
QTreeWidgetItem itemFromIndex(const(QModelIndex) index)
Undocumented in source.
itemPressed
void itemPressed(QTreeWidgetItem item, int column)
Undocumented in source.
itemSelectionChanged
void itemSelectionChanged()
Undocumented in source.
itemWidget
QWidget itemWidget(QTreeWidgetItem item, int column)
Undocumented in source.
items
QList!(QTreeWidgetItem) items(const(QMimeData) data)
Undocumented in source.
mimeData
QMimeData mimeData(const(QList!(QTreeWidgetItem)) items)
Undocumented in source.
mimeTypes
QStringList mimeTypes()
Undocumented in source.
openPersistentEditor
void openPersistentEditor(QTreeWidgetItem item, int column)
Undocumented in source.
removeItemWidget
void removeItemWidget(QTreeWidgetItem item, int column)
Undocumented in source. Be warned that the author may not have intended to support it.
scrollToItem
void scrollToItem(const(QTreeWidgetItem) item, QAbstractItemView.ScrollHint hint)
Undocumented in source.
selectedItems
QList!(QTreeWidgetItem) selectedItems()
Undocumented in source.
setColumnCount
void setColumnCount(int columns)
Undocumented in source.
setCurrentItem
void setCurrentItem(QTreeWidgetItem item)
Undocumented in source.
setCurrentItem
void setCurrentItem(QTreeWidgetItem item, int column)
Undocumented in source.
setCurrentItem
void setCurrentItem(QTreeWidgetItem item, int column, QItemSelectionModel.SelectionFlags command)
Undocumented in source.
setFirstItemColumnSpanned
void setFirstItemColumnSpanned(const(QTreeWidgetItem) item, bool span)
Undocumented in source.
setHeaderItem
void setHeaderItem(QTreeWidgetItem item)
Undocumented in source.
setHeaderLabels
void setHeaderLabels(const(QStringList) labels)
Undocumented in source.
setItemExpanded
void setItemExpanded(const(QTreeWidgetItem) item, bool expand)
Undocumented in source.
setItemHidden
void setItemHidden(const(QTreeWidgetItem) item, bool hide)
Undocumented in source.
setItemSelected
void setItemSelected(const(QTreeWidgetItem) item, bool select)
Undocumented in source.
setItemWidget
void setItemWidget(QTreeWidgetItem item, int column, QWidget widget)
Undocumented in source.
setSelectionModel
void setSelectionModel(QItemSelectionModel selectionModel)
Undocumented in source.
sortColumn
int sortColumn()
Undocumented in source.
sortItems
void sortItems(int column, qt.core.namespace.SortOrder order)
Undocumented in source.
supportedDropActions
qt.core.namespace.DropActions supportedDropActions()
Undocumented in source.
takeTopLevelItem
QTreeWidgetItem takeTopLevelItem(int index)
Undocumented in source.
topLevelItem
QTreeWidgetItem topLevelItem(int index)
Undocumented in source.
topLevelItemCount
int topLevelItemCount()
Undocumented in source.
visualItemRect
QRect visualItemRect(const(QTreeWidgetItem) item)
Undocumented in source.

Inherited Members

From QTreeView

~this
~this()
Undocumented in source.
setModel
void setModel(QAbstractItemModel model)
Undocumented in source.
setRootIndex
void setRootIndex(const(QModelIndex) index)
Undocumented in source.
setSelectionModel
void setSelectionModel(QItemSelectionModel selectionModel)
Undocumented in source.
header
QHeaderView header()
Undocumented in source.
setHeader
void setHeader(QHeaderView header)
Undocumented in source.
autoExpandDelay
int autoExpandDelay()
Undocumented in source.
setAutoExpandDelay
void setAutoExpandDelay(int delay)
Undocumented in source.
indentation
int indentation()
Undocumented in source.
setIndentation
void setIndentation(int i)
Undocumented in source.
resetIndentation
void resetIndentation()
Undocumented in source.
rootIsDecorated
bool rootIsDecorated()
Undocumented in source.
setRootIsDecorated
void setRootIsDecorated(bool show)
Undocumented in source.
uniformRowHeights
bool uniformRowHeights()
Undocumented in source.
setUniformRowHeights
void setUniformRowHeights(bool uniform)
Undocumented in source.
itemsExpandable
bool itemsExpandable()
Undocumented in source.
setItemsExpandable
void setItemsExpandable(bool enable)
Undocumented in source.
expandsOnDoubleClick
bool expandsOnDoubleClick()
Undocumented in source.
setExpandsOnDoubleClick
void setExpandsOnDoubleClick(bool enable)
Undocumented in source.
columnViewportPosition
int columnViewportPosition(int column)
Undocumented in source.
columnWidth
int columnWidth(int column)
Undocumented in source.
setColumnWidth
void setColumnWidth(int column, int width)
Undocumented in source.
columnAt
int columnAt(int x)
Undocumented in source.
isColumnHidden
bool isColumnHidden(int column)
Undocumented in source.
setColumnHidden
void setColumnHidden(int column, bool hide)
Undocumented in source.
isHeaderHidden
bool isHeaderHidden()
Undocumented in source.
setHeaderHidden
void setHeaderHidden(bool hide)
Undocumented in source.
isRowHidden
bool isRowHidden(int row, const(QModelIndex) parent)
Undocumented in source.
setRowHidden
void setRowHidden(int row, const(QModelIndex) parent, bool hide)
Undocumented in source.
isFirstColumnSpanned
bool isFirstColumnSpanned(int row, const(QModelIndex) parent)
Undocumented in source.
setFirstColumnSpanned
void setFirstColumnSpanned(int row, const(QModelIndex) parent, bool span)
Undocumented in source.
isExpanded
bool isExpanded(const(QModelIndex) index)
Undocumented in source.
setExpanded
void setExpanded(const(QModelIndex) index, bool expand)
Undocumented in source.
setSortingEnabled
void setSortingEnabled(bool enable)
Undocumented in source.
isSortingEnabled
bool isSortingEnabled()
Undocumented in source.
setAnimated
void setAnimated(bool enable)
Undocumented in source.
isAnimated
bool isAnimated()
Undocumented in source.
setAllColumnsShowFocus
void setAllColumnsShowFocus(bool enable)
Undocumented in source.
allColumnsShowFocus
bool allColumnsShowFocus()
Undocumented in source.
setWordWrap
void setWordWrap(bool on)
Undocumented in source.
wordWrap
bool wordWrap()
Undocumented in source.
setTreePosition
void setTreePosition(int logicalIndex)
Undocumented in source.
treePosition
int treePosition()
Undocumented in source.
keyboardSearch
void keyboardSearch(const(QString) search)
Undocumented in source.
visualRect
QRect visualRect(const(QModelIndex) index)
Undocumented in source.
scrollTo
void scrollTo(const(QModelIndex) index, ScrollHint hint)
Undocumented in source.
indexAt
QModelIndex indexAt(const(QPoint) p)
Undocumented in source.
indexAbove
QModelIndex indexAbove(const(QModelIndex) index)
Undocumented in source.
indexBelow
QModelIndex indexBelow(const(QModelIndex) index)
Undocumented in source.
doItemsLayout
void doItemsLayout()
Undocumented in source.
reset
void reset()
Undocumented in source.
dataChanged
void dataChanged(const(QModelIndex) topLeft, const(QModelIndex) bottomRight, const(QVector!(int)) roles)
Undocumented in source.
selectAll
void selectAll()
Undocumented in source.
expanded
void expanded(const(QModelIndex) index)
Undocumented in source.
collapsed
void collapsed(const(QModelIndex) index)
Undocumented in source.
hideColumn
void hideColumn(int column)
Undocumented in source.
showColumn
void showColumn(int column)
Undocumented in source.
expand
void expand(const(QModelIndex) index)
Undocumented in source.
collapse
void collapse(const(QModelIndex) index)
Undocumented in source.
resizeColumnToContents
void resizeColumnToContents(int column)
Undocumented in source.
sortByColumn
void sortByColumn(int column)
Undocumented in source.
sortByColumn
void sortByColumn(int column, qt.core.namespace.SortOrder order)
Undocumented in source.
expandAll
void expandAll()
Undocumented in source.
expandRecursively
void expandRecursively(const(QModelIndex) index, int depth)
Undocumented in source.
collapseAll
void collapseAll()
Undocumented in source.
expandToDepth
void expandToDepth(int depth)
Undocumented in source.
columnResized
void columnResized(int column, int oldSize, int newSize)
Undocumented in source.
columnCountChanged
void columnCountChanged(int oldCount, int newCount)
Undocumented in source.
columnMoved
void columnMoved()
Undocumented in source.
reexpand
void reexpand()
Undocumented in source.
rowsRemoved
void rowsRemoved(const(QModelIndex) parent, int first, int last)
Undocumented in source.
verticalScrollbarValueChanged
void verticalScrollbarValueChanged(int value)
Undocumented in source.
scrollContentsBy
void scrollContentsBy(int dx, int dy)
Undocumented in source.
rowsInserted
void rowsInserted(const(QModelIndex) parent, int start, int end)
Undocumented in source.
rowsAboutToBeRemoved
void rowsAboutToBeRemoved(const(QModelIndex) parent, int start, int end)
Undocumented in source.
moveCursor
QModelIndex moveCursor(CursorAction cursorAction, qt.core.namespace.KeyboardModifiers modifiers)
Undocumented in source.
horizontalOffset
int horizontalOffset()
Undocumented in source.
verticalOffset
int verticalOffset()
Undocumented in source.
setSelection
void setSelection(const(QRect) rect, QItemSelectionModel.SelectionFlags command)
Undocumented in source.
visualRegionForSelection
QRegion visualRegionForSelection(const(QItemSelection) selection)
Undocumented in source.
selectedIndexes
QModelIndexList selectedIndexes()
Undocumented in source.
timerEvent
void timerEvent(QTimerEvent event)
Undocumented in source.
paintEvent
void paintEvent(QPaintEvent event)
Undocumented in source.
drawTree
void drawTree(QPainter* painter, const(QRegion) region)
Undocumented in source.
drawRow
void drawRow(QPainter* painter, const(QStyleOptionViewItem) options, const(QModelIndex) index)
Undocumented in source.
drawBranches
void drawBranches(QPainter* painter, const(QRect) rect, const(QModelIndex) index)
Undocumented in source.
mousePressEvent
void mousePressEvent(QMouseEvent event)
Undocumented in source.
mouseReleaseEvent
void mouseReleaseEvent(QMouseEvent event)
Undocumented in source.
mouseDoubleClickEvent
void mouseDoubleClickEvent(QMouseEvent event)
Undocumented in source.
mouseMoveEvent
void mouseMoveEvent(QMouseEvent event)
Undocumented in source.
keyPressEvent
void keyPressEvent(QKeyEvent event)
Undocumented in source.
dragMoveEvent
void dragMoveEvent(QDragMoveEvent event)
Undocumented in source.
viewportEvent
bool viewportEvent(QEvent event)
Undocumented in source.
updateGeometries
void updateGeometries()
Undocumented in source.
viewportSizeHint
QSize viewportSizeHint()
Undocumented in source.
sizeHintForColumn
int sizeHintForColumn(int column)
Undocumented in source.
indexRowSizeHint
int indexRowSizeHint(const(QModelIndex) index)
Undocumented in source.
rowHeight
int rowHeight(const(QModelIndex) index)
Undocumented in source.
horizontalScrollbarAction
void horizontalScrollbarAction(int action)
Undocumented in source.
isIndexHidden
bool isIndexHidden(const(QModelIndex) index)
Undocumented in source.
selectionChanged
void selectionChanged(const(QItemSelection) selected, const(QItemSelection) deselected)
Undocumented in source.
currentChanged
void currentChanged(const(QModelIndex) current, const(QModelIndex) previous)
Undocumented in source.

Meta