PythonQt.QtGui.QListView · declarations 001
Back to PythonQt.QtGui.QListView
Adjust
instance-attribute
Adjust: Any
Batched
instance-attribute
Batched: Any
Flow
instance-attribute
Flow: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
Free
instance-attribute
Free: Any
IconMode
instance-attribute
IconMode: Any
LayoutMode
instance-attribute
LayoutMode: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
ListMode
instance-attribute
ListMode: Any
Movement
instance-attribute
Movement: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
SinglePass
instance-attribute
SinglePass: Any
Snap
instance-attribute
Snap: Any
Static
instance-attribute
Static: Any
activated
activated(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QListView.activated; argument details are not documented.
batchSize
instance-attribute
batchSize: int
Qt 5 reference:
batchSize : int
This property holds the number of items laid out in each batch if layoutMode is set to Batched
The default value is 100.
This property was introduced in Qt 4.2.
Access functions:
| int | batchSize() const |
|---|---|
| void | setBatchSize(int batchSize) |
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#batchSize
clearPropertyFlags
clearPropertyFlags() -> None
X.clearPropertyFlags()
Supplemental documentation: Qt 5 reference:
void QListView::clearPropertyFlags()
Clears the QListView-specific property flags. See viewMode.
Properties inherited from QAbstractItemView are not covered by the property flags. Specifically, dragEnabled and acceptsDrops are computed by QListView when calling setMovement() or setViewMode().
Upstream PySide2 reference signatures (binding differences may apply):
clearPropertyFlags(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#clearPropertyFlags
clicked
clicked(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QListView.clicked; argument details are not documented.
contentsSize
contentsSize() -> Any
X.contentsSize() -> PythonQt.QtCore.QSize
Upstream PySide2 reference signatures (binding differences may apply):
contentsSize(self) -> PySide2.QtCore.QSize
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#contentsSize
customContextMenuRequested
customContextMenuRequested(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QListView.customContextMenuRequested; argument details are not documented.
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QListView.destroyed; argument details are not documented.
doItemsLayout
doItemsLayout() -> None
X.doItemsLayout()
Upstream PySide2 reference signatures (binding differences may apply):
doItemsLayout(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#doItemsLayout
doubleClicked
doubleClicked(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QListView.doubleClicked; argument details are not documented.
dragLeaveEvent
dragLeaveEvent(e: Any) -> None
X.dragLeaveEvent(e)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QListView::dragLeaveEvent(QDragLeaveEvent *e)
Reimplements: QAbstractItemView::dragLeaveEvent(QDragLeaveEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
dragLeaveEvent(self, e: PySide2.QtGui.QDragLeaveEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#dragLeaveEvent
dragMoveEvent
dragMoveEvent(e: Any) -> None
X.dragMoveEvent(e)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QListView::dragMoveEvent(QDragMoveEvent *e)
Reimplements: QAbstractItemView::dragMoveEvent(QDragMoveEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
dragMoveEvent(self, e: PySide2.QtGui.QDragMoveEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#dragMoveEvent
dropEvent
dropEvent(e: Any) -> None
X.dropEvent(e)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QListView::dropEvent(QDropEvent *event)
Reimplements: QAbstractItemView::dropEvent(QDropEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
dropEvent(self, e: PySide2.QtGui.QDropEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#dropEvent
entered
entered(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QListView.entered; argument details are not documented.
event
event(e: Any) -> bool
X.event(e) -> bool
Supplemental documentation: Qt 5 reference:
[override virtual protected] bool QListView::event(QEvent *e)
Reimplements: QAbstractItemView::event(QEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
event(self, e: PySide2.QtCore.QEvent) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#event
flow
instance-attribute
flow: Any
Qt 5 reference:
flow : Flow
This property holds which direction the items layout should flow.
If this property is
LeftToRight, the items
will be laid out left to right. If the
isWrapping property
is true, the layout will wrap when it reaches the right side of the visible area. If
this property is
TopToBottom, the items
will be laid out from the top of the visible area, wrapping when it reaches the bottom.
Setting this property when the view is visible will cause the items to be laid out again.
By default, this property is set to TopToBottom.
Access functions:
| QListView::Flow | flow() const |
|---|---|
| void | setFlow(QListView::Flow flow) |
See also viewMode.
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#flow
gridSize
instance-attribute
gridSize: QSize
Qt 5 reference:
gridSize : QSize
This property holds the size of the layout grid
This property is the size of the grid in which the items are laid out. The default is an empty size which means that there is no grid and the layout is not done in a grid. Setting this property to a non-empty size switches on the grid layout. (When a grid layout is in force the spacing property is ignored.)
Setting this property when the view is visible will cause the items to be laid out again.
Access functions:
| QSize | gridSize() const |
|---|---|
| void | setGridSize(const QSize \&size) |
See also viewMode.
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#gridSize
horizontalOffset
horizontalOffset() -> int
X.horizontalOffset() -> int
Supplemental documentation: Qt 5 reference:
[override virtual protected] int QListView::horizontalOffset() const
Reimplements: QAbstractItemView::horizontalOffset() const.
Upstream PySide2 reference signatures (binding differences may apply):
horizontalOffset(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#horizontalOffset
iconSizeChanged
iconSizeChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QListView.iconSizeChanged; argument details are not documented.
indexAt
indexAt(p: Any) -> Any
X.indexAt(p) -> PythonQt.QtCore.QModelIndex
Supplemental documentation: Qt 5 reference:
[override virtual] QModelIndex QListView::indexAt(const QPoint \&p) const
Reimplements: QAbstractItemView::indexAt(const QPoint \&point) const.
Upstream PySide2 reference signatures (binding differences may apply):
indexAt(self, p: PySide2.QtCore.QPoint) -> PySide2.QtCore.QModelIndex
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#indexAt
indexesMoved
indexesMoved(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QListView.indexesMoved; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QListView::indexesMoved(const QModelIndexList \&indexes)
This signal is emitted when the specified indexes are moved in the view.
This function was introduced in Qt 4.2.
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#indexesMoved
isIndexHidden
isIndexHidden(index: Any) -> bool
X.isIndexHidden(index) -> bool
Supplemental documentation: Qt 5 reference:
[override virtual protected] bool QListView::isIndexHidden(const QModelIndex \&index) const
Reimplements: QAbstractItemView::isIndexHidden(const QModelIndex \&index) const.
Upstream PySide2 reference signatures (binding differences may apply):
isIndexHidden(self, index: PySide2.QtCore.QModelIndex) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#isIndexHidden
isRowHidden
isRowHidden(row: int) -> bool
X.isRowHidden(row) -> bool
Supplemental documentation: Qt 5 reference:
bool QListView::isRowHidden(int row) const
Returns true if the row is hidden; otherwise returns false.
Upstream PySide2 reference signatures (binding differences may apply):
isRowHidden(self, row: int) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#isRowHidden
isSelectionRectVisible
isSelectionRectVisible() -> bool
X.isSelectionRectVisible() -> bool
Upstream PySide2 reference signatures (binding differences may apply):
isSelectionRectVisible(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#isSelectionRectVisible
isWrapping
instance-attribute
isWrapping: bool
Qt 5 reference:
isWrapping : bool
This property holds whether the items layout should wrap.
This property holds whether the layout should wrap when there is no more space in the visible area. The point at which the layout wraps depends on the flow property.
Setting this property when the view is visible will cause the items to be laid out again.
By default, this property is false.
Access functions:
| bool | isWrapping() const |
|---|---|
| void | setWrapping(bool enable) |
See also viewMode.
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#isWrapping
itemAlignment
instance-attribute
itemAlignment: Any
Qt 5 reference:
itemAlignment : Qt::Alignment
This property holds the alignment of each item in its cell
This is only supported in ListMode with TopToBottom flow and with wrapping enabled. The default alignment is 0, which means that an item fills its cell entirely.
This property was introduced in Qt 5.12.
Access functions:
| Qt::Alignment | itemAlignment() const |
|---|---|
| void | setItemAlignment(Qt::Alignment alignment) |
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#itemAlignment
layoutMode
instance-attribute
layoutMode: Any
Qt 5 reference:
layoutMode : LayoutMode
determines whether the layout of items should happen immediately or be delayed.
This property holds the layout mode for the items. When the mode is SinglePass (the default), the items are laid out all in one go. When the mode is Batched, the items are laid out in batches of batchSize items, while processing events. This makes it possible to instantly view and interact with the visible items while the rest are being laid out.
Access functions:
| QListView::LayoutMode | layoutMode() const |
|---|---|
| void | setLayoutMode(QListView::LayoutMode mode) |
See also viewMode.
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#layoutMode
modelColumn
instance-attribute
modelColumn: int
Qt 5 reference:
modelColumn : int
This property holds the column in the model that is visible
By default, this property contains 0, indicating that the first column in the model will be shown.
Access functions:
| int | modelColumn() const |
|---|---|
| void | setModelColumn(int column) |
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#modelColumn
mouseMoveEvent
mouseMoveEvent(e: Any) -> None
X.mouseMoveEvent(e)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QListView::mouseMoveEvent(QMouseEvent *e)
Reimplements: QAbstractItemView::mouseMoveEvent(QMouseEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
mouseMoveEvent(self, e: PySide2.QtGui.QMouseEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#mouseMoveEvent
mouseReleaseEvent
mouseReleaseEvent(e: Any) -> None
X.mouseReleaseEvent(e)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QListView::mouseReleaseEvent(QMouseEvent *e)
Reimplements: QAbstractItemView::mouseReleaseEvent(QMouseEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
mouseReleaseEvent(self, e: PySide2.QtGui.QMouseEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qlistview.html#mouseReleaseEvent