FileTree
Qt Base Class: QTreeView
Signature: QTreeView(self, parent: Optional[PySide6.QtWidgets.QWidget] = None) -> None
Base classes
Name | Children | Inherits |
---|---|---|
TreeView prettyqt.widgets.treeview |
⋔ Inheritance diagram
graph TD
1473367133104["custom_widgets.FileTree"]
1473296360320["widgets.TreeView"]
1473296343728["widgets.TreeViewMixin"]
1473293692144["widgets.AbstractItemViewMixin"]
1473293679456["widgets.AbstractScrollAreaMixin"]
1473293662864["widgets.FrameMixin"]
1473293688240["widgets.WidgetMixin"]
1473299815024["core.ObjectMixin"]
140713234304496["builtins.object"]
1473245548480["gui.PaintDeviceMixin"]
1473241448160["QtWidgets.QTreeView"]
1473241438400["QtWidgets.QAbstractItemView"]
1473290616416["QtWidgets.QAbstractScrollArea"]
1473290626176["QtWidgets.QFrame"]
1473290849680["QtWidgets.QWidget"]
1473288842240["QtCore.QObject"]
1473291690208["Shiboken.Object"]
1473300082368["QtGui.QPaintDevice"]
1473296360320 --> 1473367133104
1473296343728 --> 1473296360320
1473293692144 --> 1473296343728
1473293679456 --> 1473293692144
1473293662864 --> 1473293679456
1473293688240 --> 1473293662864
1473299815024 --> 1473293688240
140713234304496 --> 1473299815024
1473245548480 --> 1473293688240
140713234304496 --> 1473245548480
1473241448160 --> 1473296360320
1473241438400 --> 1473241448160
1473290616416 --> 1473241438400
1473290626176 --> 1473290616416
1473290849680 --> 1473290626176
1473288842240 --> 1473290849680
1473291690208 --> 1473288842240
140713234304496 --> 1473291690208
1473300082368 --> 1473290849680
1473291690208 --> 1473300082368
🛈 DocStrings
Bases: TreeView
Source code in prettyqt\custom_widgets\itemviews\filetree.py
get_expanded_state(root_index: core.ModelIndex | None = None) -> list[str]
Get a list of all expanded paths.
Can be used to re-expand to the same state.
Source code in prettyqt\custom_widgets\itemviews\filetree.py
set_expanded_state(state: list[str], root_index: core.ModelIndex | None = None)
Set all indexes which correspond to given paths to expanded.
Source code in prettyqt\custom_widgets\itemviews\filetree.py
set_root_path(path: datatypes.PathType)
Set tree rootpath to given path.
⌗ Property table
Qt Property | Type | Doc |
---|---|---|
objectName |
QString | |
modal |
bool | |
windowModality |
Qt::WindowModality | |
enabled |
bool | |
geometry |
QRect | |
frameGeometry |
QRect | |
normalGeometry |
QRect | |
x |
int | |
y |
int | |
pos |
QPoint | |
frameSize |
QSize | |
size |
QSize | |
width |
int | |
height |
int | |
rect |
QRect | |
childrenRect |
QRect | |
childrenRegion |
QRegion | |
sizePolicy |
QSizePolicy | |
minimumSize |
QSize | |
maximumSize |
QSize | |
minimumWidth |
int | |
minimumHeight |
int | |
maximumWidth |
int | |
maximumHeight |
int | |
sizeIncrement |
QSize | |
baseSize |
QSize | |
palette |
QPalette | |
font |
QFont | |
cursor |
QCursor | |
mouseTracking |
bool | |
tabletTracking |
bool | |
isActiveWindow |
bool | |
focusPolicy |
Qt::FocusPolicy | |
focus |
bool | |
contextMenuPolicy |
Qt::ContextMenuPolicy | |
updatesEnabled |
bool | |
visible |
bool | |
minimized |
bool | |
maximized |
bool | |
fullScreen |
bool | |
sizeHint |
QSize | |
minimumSizeHint |
QSize | |
acceptDrops |
bool | |
windowTitle |
QString | |
windowIcon |
QIcon | |
windowIconText |
QString | |
windowOpacity |
double | |
windowModified |
bool | |
toolTip |
QString | |
toolTipDuration |
int | |
statusTip |
QString | |
whatsThis |
QString | |
accessibleName |
QString | |
accessibleDescription |
QString | |
layoutDirection |
Qt::LayoutDirection | |
autoFillBackground |
bool | |
styleSheet |
QString | |
locale |
QLocale | |
windowFilePath |
QString | |
inputMethodHints |
QFlags |
|
frameShape |
QFrame::Shape | |
frameShadow |
QFrame::Shadow | |
lineWidth |
int | |
midLineWidth |
int | |
frameWidth |
int | |
frameRect |
QRect | |
verticalScrollBarPolicy |
Qt::ScrollBarPolicy | |
horizontalScrollBarPolicy |
Qt::ScrollBarPolicy | |
sizeAdjustPolicy |
QAbstractScrollArea::SizeAdjustPolicy | |
autoScroll |
bool | |
autoScrollMargin |
int | |
editTriggers |
QFlags |
|
tabKeyNavigation |
bool | |
showDropIndicator |
bool | |
dragEnabled |
bool | |
dragDropOverwriteMode |
bool | |
dragDropMode |
QAbstractItemView::DragDropMode | |
defaultDropAction |
Qt::DropAction | |
alternatingRowColors |
bool | |
selectionMode |
QAbstractItemView::SelectionMode | |
selectionBehavior |
QAbstractItemView::SelectionBehavior | |
iconSize |
QSize | |
textElideMode |
Qt::TextElideMode | |
verticalScrollMode |
QAbstractItemView::ScrollMode | |
horizontalScrollMode |
QAbstractItemView::ScrollMode | |
autoExpandDelay |
int | |
indentation |
int | |
rootIsDecorated |
bool | |
uniformRowHeights |
bool | |
itemsExpandable |
bool | |
sortingEnabled |
bool | |
animated |
bool | |
allColumnsShowFocus |
bool | |
wordWrap |
bool | |
headerHidden |
bool | |
expandsOnDoubleClick |
bool |