Skip to content

PythonQt.QtGui.QListWidget · declarations 001

Back to PythonQt.QtGui.QListWidget

activated

activated(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QListWidget.activated; argument details are not documented.

addItem

addItem(item: Any) -> None

X.addItem(item)

Supplemental documentation: Qt 5 reference:

void QListWidget::addItem(const QString \&label)

Inserts an item with the text label at the end of the list widget.

void QListWidget::addItem(QListWidgetItem *item)

Inserts the item at the end of the list widget.

Warning: A QListWidgetItem can only be added to a QListWidget once. Adding the same QListWidgetItem multiple times to a QListWidget will result in undefined behavior.

See also insertItem().

Upstream PySide2 reference signatures (binding differences may apply):

addItem(self, item: PySide2.QtWidgets.QListWidgetItem) -> None
addItem(self, label: str) -> None

Source: https://doc.qt.io/archives/qt-5.15/qlistwidget.html#addItem

addItems

addItems(labels: Any) -> None

X.addItems(labels)

Supplemental documentation: Qt 5 reference:

void QListWidget::addItems(const QStringList \&labels)

Inserts items with the text labels at the end of the list widget.

See also insertItems().

Upstream PySide2 reference signatures (binding differences may apply):

addItems(self, labels: typing.Sequence[str]) -> None

Source: https://doc.qt.io/archives/qt-5.15/qlistwidget.html#addItems

batchSize instance-attribute

batchSize: Any

clear

clear() -> None

X.clear()

Supplemental documentation: Qt 5 reference:

[slot] void QListWidget::clear()

Removes all items and selections in the view.

Warning: All items will be permanently deleted.

Upstream PySide2 reference signatures (binding differences may apply):

clear(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qlistwidget.html#clear

clearPropertyFlags

clearPropertyFlags() -> Any

X.clearPropertyFlags()

clicked

clicked(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QListWidget.clicked; argument details are not documented.

closePersistentEditor

closePersistentEditor(item: Any) -> None

X.closePersistentEditor(item)

Supplemental documentation: Qt 5 reference:

void QListWidget::closePersistentEditor(QListWidgetItem *item)

Closes the persistent editor for the given item.

See also openPersistentEditor() and isPersistentEditorOpen().

Upstream PySide2 reference signatures (binding differences may apply):

closePersistentEditor(self, index: PySide2.QtCore.QModelIndex) -> None
closePersistentEditor(self, item: PySide2.QtWidgets.QListWidgetItem) -> None

Source: https://doc.qt.io/archives/qt-5.15/qlistwidget.html#closePersistentEditor

contentsSize

contentsSize() -> Any

X.contentsSize() -> PythonQt.QtCore.QSize

count instance-attribute

count: int

Qt 5 reference:

count : const int

This property holds the number of items in the list including any hidden items.

Access functions:

int count() const

Source: https://doc.qt.io/archives/qt-5.15/qlistwidget.html#count

currentItem

currentItem() -> Any

X.currentItem() -> PythonQt.QtGui.QListWidgetItem

Supplemental documentation: Qt 5 reference:

QListWidgetItem *QListWidget::currentItem() const

Returns the current item.

See also setCurrentItem().

Upstream PySide2 reference signatures (binding differences may apply):

currentItem(self) -> PySide2.QtWidgets.QListWidgetItem

Source: https://doc.qt.io/archives/qt-5.15/qlistwidget.html#currentItem

currentItemChanged

currentItemChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QListWidget.currentItemChanged; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QListWidget::currentItemChanged(QListWidgetItem *current, QListWidgetItem *previous)

This signal is emitted whenever the current item changes.

previous is the item that previously had the focus; current is the new current item.

Source: https://doc.qt.io/archives/qt-5.15/qlistwidget.html#currentItemChanged

currentRow instance-attribute

currentRow: int

Qt 5 reference:

currentRow : int

This property holds the row of the current item.

Depending on the current selection mode, the row may also be selected.

Access functions:

int currentRow() const
void setCurrentRow(int row)
void setCurrentRow(int row, QItemSelectionModel::SelectionFlags command)

Notifier signal:

void currentRowChanged(int currentRow)

Source: https://doc.qt.io/archives/qt-5.15/qlistwidget.html#currentRow

currentRowChanged

currentRowChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QListWidget.currentRowChanged; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QListWidget::currentRowChanged(int currentRow)

This signal is emitted whenever the current item changes.

currentRow is the row of the current item. If there is no current item, the currentRow is -1.

Note: Notifier signal for property currentRow.

Source: https://doc.qt.io/archives/qt-5.15/qlistwidget.html#currentRowChanged

currentTextChanged

currentTextChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QListWidget.currentTextChanged; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QListWidget::currentTextChanged(const QString \&currentText)

This signal is emitted whenever the current item changes.

currentText is the text data in the current item. If there is no current item, the currentText is invalid.

Source: https://doc.qt.io/archives/qt-5.15/qlistwidget.html#currentTextChanged

customContextMenuRequested

customContextMenuRequested(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QListWidget.customContextMenuRequested; argument details are not documented.

destroyed

destroyed(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QListWidget.destroyed; argument details are not documented.

doubleClicked

doubleClicked(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QListWidget.doubleClicked; argument details are not documented.

dragLeaveEvent

dragLeaveEvent(e: Any) -> Any

X.dragLeaveEvent(e)

dragMoveEvent

dragMoveEvent(e: Any) -> Any

X.dragMoveEvent(e)

dropEvent

dropEvent(event: Any) -> None

X.dropEvent(event)

Supplemental documentation: Qt 5 reference:

[override virtual] void QListWidget::dropEvent(QDropEvent *event)

Reimplements: QListView::dropEvent(QDropEvent *event).

Upstream PySide2 reference signatures (binding differences may apply):

dropEvent(self, event: PySide2.QtGui.QDropEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qlistwidget.html#dropEvent

dropMimeData

dropMimeData(index: int, data: Any, action: Any) -> bool

X.dropMimeData(index, data, action) -> bool

Supplemental documentation: Qt 5 reference:

[virtual protected] bool QListWidget::dropMimeData(int index, const QMimeData *data, Qt::DropAction action)

Handles data supplied by an external drag and drop operation that ended with the given action in the given index. Returns true if data and action can be handled by the model; otherwise returns false.

See also supportedDropActions().

Upstream PySide2 reference signatures (binding differences may apply):

dropMimeData(self, index: int, data: PySide2.QtCore.QMimeData, action: PySide2.QtCore.Qt.DropAction) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qlistwidget.html#dropMimeData

editItem

editItem(item: Any) -> None

X.editItem(item)

Supplemental documentation: Qt 5 reference:

void QListWidget::editItem(QListWidgetItem *item)

Starts editing the item if it is editable.

Upstream PySide2 reference signatures (binding differences may apply):

editItem(self, item: PySide2.QtWidgets.QListWidgetItem) -> None

Source: https://doc.qt.io/archives/qt-5.15/qlistwidget.html#editItem

entered

entered(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QListWidget.entered; argument details are not documented.

event

event(e: Any) -> bool

X.event(e) -> bool

Supplemental documentation: Qt 5 reference:

[override virtual protected] bool QListWidget::event(QEvent *e)

Reimplements: QListView::event(QEvent *e).

Upstream PySide2 reference signatures (binding differences may apply):

event(self, e: PySide2.QtCore.QEvent) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qlistwidget.html#event

findItems

findItems(text: str, arg1: flags) -> tuple

X.findItems(text, flags) -> tuple

Supplemental documentation: Qt 5 reference:

QList\<QListWidgetItem *> QListWidget::findItems(const QString \&text, Qt::MatchFlags flags) const

Finds items with the text that matches the string text using the given flags.

Upstream PySide2 reference signatures (binding differences may apply):

findItems(self, text: str, flags: PySide2.QtCore.Qt.MatchFlags) -> typing.List[PySide2.QtWidgets.QListWidgetItem]

Source: https://doc.qt.io/archives/qt-5.15/qlistwidget.html#findItems

flow instance-attribute

flow: Any

gridSize instance-attribute

gridSize: QSize

horizontalOffset

horizontalOffset() -> int

X.horizontalOffset() -> int

iconSizeChanged

iconSizeChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QListWidget.iconSizeChanged; argument details are not documented.

indexAt

indexAt(p: Any) -> Any

X.indexAt(p) -> PythonQt.QtCore.QModelIndex

indexFromItem

indexFromItem(item: Any) -> Any

X.indexFromItem(item) -> PythonQt.QtCore.QModelIndex

Supplemental documentation: Qt 5 reference:

[protected] QModelIndex QListWidget::indexFromItem(const QListWidgetItem *item) const

Returns the QModelIndex associated with the given item.

Note: In Qt versions prior to 5.10, this function took a non-const item.

Upstream PySide2 reference signatures (binding differences may apply):

indexFromItem(self, item: PySide2.QtWidgets.QListWidgetItem) -> PySide2.QtCore.QModelIndex

Source: https://doc.qt.io/archives/qt-5.15/qlistwidget.html#indexFromItem

indexesMoved

indexesMoved(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QListWidget.indexesMoved; argument details are not documented.

insertItem

insertItem(row: int, item: Any) -> None

X.insertItem(row, item)

Supplemental documentation: Qt 5 reference:

void QListWidget::insertItem(int row, QListWidgetItem *item)

Inserts the item at the position in the list given by row.

See also addItem().

void QListWidget::insertItem(int row, const QString \&label)

Inserts an item with the text label in the list widget at the position given by row.

See also addItem().

Upstream PySide2 reference signatures (binding differences may apply):

insertItem(self, row: int, item: PySide2.QtWidgets.QListWidgetItem) -> None
insertItem(self, row: int, label: str) -> None

Source: https://doc.qt.io/archives/qt-5.15/qlistwidget.html#insertItem

insertItems

insertItems(row: int, labels: Any) -> None

X.insertItems(row, labels)

Supplemental documentation: Qt 5 reference:

void QListWidget::insertItems(int row, const QStringList \&labels)

Inserts items from the list of labels into the list, starting at the given row.

See also insertItem() and addItem().

Upstream PySide2 reference signatures (binding differences may apply):

insertItems(self, row: int, labels: typing.Sequence[str]) -> None

Source: https://doc.qt.io/archives/qt-5.15/qlistwidget.html#insertItems

isIndexHidden

isIndexHidden(index: Any) -> bool

X.isIndexHidden(index) -> bool

isRowHidden

isRowHidden(row: Any) -> bool

X.isRowHidden(row) -> bool

isSelectionRectVisible

isSelectionRectVisible() -> bool

X.isSelectionRectVisible() -> bool

isSortingEnabled

isSortingEnabled() -> bool

X.isSortingEnabled() -> bool

Upstream PySide2 reference signatures (binding differences may apply):

isSortingEnabled(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qlistwidget.html#isSortingEnabled

isWrapping instance-attribute

isWrapping: Any