QTreeView

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 QTreeView : QAbstractItemView {}

Constructors

this
this(QWidget parent)
Undocumented in source.
this
this(QTreeViewPrivate dd, QWidget parent)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

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

Inherited Members

From QAbstractItemView

SelectionMode
enum SelectionMode
Undocumented in source.
SelectionBehavior
enum SelectionBehavior
Undocumented in source.
ScrollHint
enum ScrollHint
Undocumented in source.
EditTrigger
enum EditTrigger
Undocumented in source.
EditTriggers
alias EditTriggers = QFlags!(EditTrigger)
Undocumented in source.
ScrollMode
enum ScrollMode
Undocumented in source.
~this
~this()
Undocumented in source.
setModel
void setModel(QAbstractItemModel model)
Undocumented in source.
model
QAbstractItemModel model()
Undocumented in source.
setSelectionModel
void setSelectionModel(QItemSelectionModel selectionModel)
Undocumented in source.
selectionModel
QItemSelectionModel selectionModel()
Undocumented in source.
setItemDelegate
void setItemDelegate(QAbstractItemDelegate delegate_)
Undocumented in source.
itemDelegate
QAbstractItemDelegate itemDelegate()
Undocumented in source.
setSelectionMode
void setSelectionMode(QAbstractItemView.SelectionMode mode)
Undocumented in source.
selectionMode
QAbstractItemView.SelectionMode selectionMode()
Undocumented in source.
setSelectionBehavior
void setSelectionBehavior(QAbstractItemView.SelectionBehavior behavior)
Undocumented in source.
selectionBehavior
QAbstractItemView.SelectionBehavior selectionBehavior()
Undocumented in source.
currentIndex
QModelIndex currentIndex()
Undocumented in source.
rootIndex
QModelIndex rootIndex()
Undocumented in source.
setEditTriggers
void setEditTriggers(EditTriggers triggers)
Undocumented in source.
editTriggers
EditTriggers editTriggers()
Undocumented in source.
setVerticalScrollMode
void setVerticalScrollMode(ScrollMode mode)
Undocumented in source.
verticalScrollMode
ScrollMode verticalScrollMode()
Undocumented in source.
resetVerticalScrollMode
void resetVerticalScrollMode()
Undocumented in source.
setHorizontalScrollMode
void setHorizontalScrollMode(ScrollMode mode)
Undocumented in source.
horizontalScrollMode
ScrollMode horizontalScrollMode()
Undocumented in source.
resetHorizontalScrollMode
void resetHorizontalScrollMode()
Undocumented in source.
setAutoScroll
void setAutoScroll(bool enable)
Undocumented in source.
hasAutoScroll
bool hasAutoScroll()
Undocumented in source.
setAutoScrollMargin
void setAutoScrollMargin(int margin)
Undocumented in source.
autoScrollMargin
int autoScrollMargin()
Undocumented in source.
setTabKeyNavigation
void setTabKeyNavigation(bool enable)
Undocumented in source.
tabKeyNavigation
bool tabKeyNavigation()
Undocumented in source.
setDropIndicatorShown
void setDropIndicatorShown(bool enable)
Undocumented in source.
showDropIndicator
bool showDropIndicator()
Undocumented in source.
setDragEnabled
void setDragEnabled(bool enable)
Undocumented in source.
dragEnabled
bool dragEnabled()
Undocumented in source.
setDragDropOverwriteMode
void setDragDropOverwriteMode(bool overwrite)
Undocumented in source.
dragDropOverwriteMode
bool dragDropOverwriteMode()
Undocumented in source.
DragDropMode
enum DragDropMode
Undocumented in source.
setDragDropMode
void setDragDropMode(DragDropMode behavior)
Undocumented in source.
dragDropMode
DragDropMode dragDropMode()
Undocumented in source.
setDefaultDropAction
void setDefaultDropAction(qt.core.namespace.DropAction dropAction)
Undocumented in source.
defaultDropAction
qt.core.namespace.DropAction defaultDropAction()
Undocumented in source.
setAlternatingRowColors
void setAlternatingRowColors(bool enable)
Undocumented in source.
alternatingRowColors
bool alternatingRowColors()
Undocumented in source.
setIconSize
void setIconSize(const(QSize) size)
Undocumented in source.
iconSize
QSize iconSize()
Undocumented in source.
setTextElideMode
void setTextElideMode(qt.core.namespace.TextElideMode mode)
Undocumented in source.
textElideMode
qt.core.namespace.TextElideMode textElideMode()
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) point)
Undocumented in source.
sizeHintForIndex
QSize sizeHintForIndex(const(QModelIndex) index)
Undocumented in source.
sizeHintForRow
int sizeHintForRow(int row)
Undocumented in source.
sizeHintForColumn
int sizeHintForColumn(int column)
Undocumented in source.
openPersistentEditor
void openPersistentEditor(const(QModelIndex) index)
Undocumented in source.
closePersistentEditor
void closePersistentEditor(const(QModelIndex) index)
Undocumented in source.
isPersistentEditorOpen
bool isPersistentEditorOpen(const(QModelIndex) index)
Undocumented in source.
setIndexWidget
void setIndexWidget(const(QModelIndex) index, QWidget widget)
Undocumented in source.
indexWidget
QWidget indexWidget(const(QModelIndex) index)
Undocumented in source.
setItemDelegateForRow
void setItemDelegateForRow(int row, QAbstractItemDelegate delegate_)
Undocumented in source.
itemDelegateForRow
QAbstractItemDelegate itemDelegateForRow(int row)
Undocumented in source.
setItemDelegateForColumn
void setItemDelegateForColumn(int column, QAbstractItemDelegate delegate_)
Undocumented in source.
itemDelegateForColumn
QAbstractItemDelegate itemDelegateForColumn(int column)
Undocumented in source.
itemDelegate
QAbstractItemDelegate itemDelegate(const(QModelIndex) index)
Undocumented in source.
inputMethodQuery
QVariant inputMethodQuery(qt.core.namespace.InputMethodQuery query)
Undocumented in source.
reset
void reset()
Undocumented in source.
setRootIndex
void setRootIndex(const(QModelIndex) index)
Undocumented in source.
doItemsLayout
void doItemsLayout()
Undocumented in source.
selectAll
void selectAll()
Undocumented in source.
edit
void edit(const(QModelIndex) index)
Undocumented in source.
clearSelection
void clearSelection()
Undocumented in source.
setCurrentIndex
void setCurrentIndex(const(QModelIndex) index)
Undocumented in source.
scrollToTop
void scrollToTop()
Undocumented in source.
scrollToBottom
void scrollToBottom()
Undocumented in source.
update
void update(const(QModelIndex) index)
Undocumented in source.
dataChanged
void dataChanged(const(QModelIndex) topLeft, const(QModelIndex) bottomRight, const(QVector!(int)) roles)
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.
selectionChanged
void selectionChanged(const(QItemSelection) selected, const(QItemSelection) deselected)
Undocumented in source.
currentChanged
void currentChanged(const(QModelIndex) current, const(QModelIndex) previous)
Undocumented in source.
updateEditorData
void updateEditorData()
Undocumented in source.
updateEditorGeometries
void updateEditorGeometries()
Undocumented in source.
updateGeometries
void updateGeometries()
Undocumented in source.
verticalScrollbarAction
void verticalScrollbarAction(int action)
Undocumented in source.
horizontalScrollbarAction
void horizontalScrollbarAction(int action)
Undocumented in source.
verticalScrollbarValueChanged
void verticalScrollbarValueChanged(int value)
Undocumented in source.
horizontalScrollbarValueChanged
void horizontalScrollbarValueChanged(int value)
Undocumented in source.
closeEditor
void closeEditor(QWidget editor, QAbstractItemDelegate.EndEditHint hint)
Undocumented in source.
commitData
void commitData(QWidget editor)
Undocumented in source.
editorDestroyed
void editorDestroyed(QObject editor)
Undocumented in source.
pressed
void pressed(const(QModelIndex) index)
Undocumented in source.
clicked
void clicked(const(QModelIndex) index)
Undocumented in source.
doubleClicked
void doubleClicked(const(QModelIndex) index)
Undocumented in source.
activated
void activated(const(QModelIndex) index)
Undocumented in source.
entered
void entered(const(QModelIndex) index)
Undocumented in source.
viewportEntered
void viewportEntered()
Undocumented in source.
iconSizeChanged
void iconSizeChanged(const(QSize) size)
Undocumented in source.
setHorizontalStepsPerItem
void setHorizontalStepsPerItem(int steps)
Undocumented in source.
horizontalStepsPerItem
int horizontalStepsPerItem()
Undocumented in source.
setVerticalStepsPerItem
void setVerticalStepsPerItem(int steps)
Undocumented in source.
verticalStepsPerItem
int verticalStepsPerItem()
Undocumented in source.
CursorAction
enum CursorAction
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.
isIndexHidden
bool isIndexHidden(const(QModelIndex) index)
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.
edit
bool edit(const(QModelIndex) index, EditTrigger trigger, QEvent event)
Undocumented in source.
startDrag
void startDrag(qt.core.namespace.DropActions supportedActions)
Undocumented in source.
viewOptions
QStyleOptionViewItem viewOptions()
Undocumented in source.
State
enum State
Undocumented in source.
state
State state()
Undocumented in source.
setState
void setState(State state)
Undocumented in source.
scheduleDelayedItemsLayout
void scheduleDelayedItemsLayout()
Undocumented in source.
executeDelayedItemsLayout
void executeDelayedItemsLayout()
Undocumented in source.
setDirtyRegion
void setDirtyRegion(const(QRegion) region)
Undocumented in source.
scrollDirtyRegion
void scrollDirtyRegion(int dx, int dy)
Undocumented in source.
dirtyRegionOffset
QPoint dirtyRegionOffset()
Undocumented in source.
startAutoScroll
void startAutoScroll()
Undocumented in source.
stopAutoScroll
void stopAutoScroll()
Undocumented in source.
doAutoScroll
void doAutoScroll()
Undocumented in source.
focusNextPrevChild
bool focusNextPrevChild(bool next)
Undocumented in source.
event
bool event(QEvent event)
Undocumented in source.
viewportEvent
bool viewportEvent(QEvent event)
Undocumented in source.
mousePressEvent
void mousePressEvent(QMouseEvent event)
Undocumented in source.
mouseMoveEvent
void mouseMoveEvent(QMouseEvent event)
Undocumented in source.
mouseReleaseEvent
void mouseReleaseEvent(QMouseEvent event)
Undocumented in source.
mouseDoubleClickEvent
void mouseDoubleClickEvent(QMouseEvent event)
Undocumented in source.
dragEnterEvent
void dragEnterEvent(QDragEnterEvent event)
Undocumented in source.
dragMoveEvent
void dragMoveEvent(QDragMoveEvent event)
Undocumented in source.
dragLeaveEvent
void dragLeaveEvent(QDragLeaveEvent event)
Undocumented in source.
dropEvent
void dropEvent(QDropEvent event)
Undocumented in source.
focusInEvent
void focusInEvent(QFocusEvent event)
Undocumented in source.
focusOutEvent
void focusOutEvent(QFocusEvent event)
Undocumented in source.
keyPressEvent
void keyPressEvent(QKeyEvent event)
Undocumented in source.
resizeEvent
void resizeEvent(QResizeEvent event)
Undocumented in source.
timerEvent
void timerEvent(QTimerEvent event)
Undocumented in source.
inputMethodEvent
void inputMethodEvent(QInputMethodEvent event)
Undocumented in source.
eventFilter
bool eventFilter(QObject object, QEvent event)
Undocumented in source.
DropIndicatorPosition
enum DropIndicatorPosition
Undocumented in source.
dropIndicatorPosition
DropIndicatorPosition dropIndicatorPosition()
Undocumented in source.
viewportSizeHint
QSize viewportSizeHint()
Undocumented in source.

Meta