Class: QgsBrowserTreeView

class qgis.gui.QgsBrowserTreeView(parent: QWidget = None)

Bases: PyQt5.QtWidgets.QTreeView

Constructor for QgsBrowserTreeView

The QgsBrowserTreeView class extends QTreeView with save/restore tree state functionality.

See also

QgsBrowserModel

New in version 2.8.

Parameters

parent

actionEvent()
browserModel(self) → QgsBrowserGuiModel

Returns the browser model

Return type

QgsBrowserGuiModel

changeEvent()
childEvent()
closeEditor()
closeEvent()
columnCountChanged()
columnMoved()
columnResized()
commitData()
connectNotify()
contextMenuEvent()
create()
currentChanged()
customEvent()
destroy()
dirtyRegionOffset()
disconnectNotify()
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
drawBranches()
drawFrame()
drawRow()
drawTree()
dropEvent()
dropIndicatorPosition()
edit()
editorDestroyed()
enterEvent()
event()
eventFilter()
executeDelayedItemsLayout()
focusInEvent()
focusNextChild()
focusNextPrevChild()
focusOutEvent()
focusPreviousChild()
hasExpandedDescendant(self, index: QModelIndex) → bool
Parameters

index (QModelIndex) –

Return type

bool

hideEvent(self, e: QHideEvent)
Parameters

e (QHideEvent) –

horizontalOffset()
horizontalScrollbarAction()
horizontalScrollbarValueChanged()
indexRowSizeHint()
initPainter()
initStyleOption()
inputMethodEvent()
isIndexHidden()
isSignalConnected()
keyPressEvent()
keyReleaseEvent()
leaveEvent()
metric()
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveCursor()
moveEvent()
nativeEvent()
paintEvent()
receivers()
reexpand()
resizeEvent()
rowHeight()
rowsAboutToBeRemoved()
rowsInserted(self, parentIndex: QModelIndex, start: int, end: int)
Parameters
  • parentIndex (QModelIndex) –

  • start (int) –

  • end (int) –

rowsRemoved()
scheduleDelayedItemsLayout()
scrollContentsBy()
scrollDirtyRegion()
selectedIndexes()
selectionChanged()
selectionCommand()
sender()
senderSignalIndex()
setBrowserModel(self, model: QgsBrowserGuiModel)

Sets the browser model

Parameters

model (QgsBrowserGuiModel) –

setDirtyRegion()
setModel(self, model: QAbstractItemModel)
Parameters

model (QAbstractItemModel) –

setSelection()
setSettingsSection(self, section: str)
Parameters

section (str) –

setState()
setViewportMargins()
sharedPainter()
showEvent(self, e: QShowEvent)
Parameters

e (QShowEvent) –

sizeHintForColumn()
startDrag()
state()
tabletEvent()
timerEvent()
updateEditorData()
updateEditorGeometries()
updateGeometries()
updateMicroFocus()
verticalOffset()
verticalScrollbarAction()
verticalScrollbarValueChanged()
viewOptions()
viewportEvent()
viewportMargins()
viewportSizeHint()
visualRegionForSelection()
wheelEvent()