Skip to content

PythonQt.QtGui.QTableWidget · declarations 002

Back to PythonQt.QtGui.QTableWidget

indexFromItem

indexFromItem(item: Any) -> Any

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

Supplemental documentation: Qt 5 reference:

[protected] QModelIndex QTableWidget::indexFromItem(const QTableWidgetItem *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.QTableWidgetItem) -> PySide2.QtCore.QModelIndex

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

insertColumn

insertColumn(column: int) -> None

X.insertColumn(column)

Supplemental documentation: Qt 5 reference:

[slot] void QTableWidget::insertColumn(int column)

Inserts an empty column into the table at column.

Upstream PySide2 reference signatures (binding differences may apply):

insertColumn(self, column: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#insertColumn

insertRow

insertRow(row: int) -> None

X.insertRow(row)

Supplemental documentation: Qt 5 reference:

[slot] void QTableWidget::insertRow(int row)

Inserts an empty row into the table at row.

Upstream PySide2 reference signatures (binding differences may apply):

insertRow(self, row: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#insertRow

isColumnHidden

isColumnHidden(column: Any) -> bool

X.isColumnHidden(column) -> bool

isCornerButtonEnabled

isCornerButtonEnabled() -> bool

X.isCornerButtonEnabled() -> 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/qtablewidget.html#isSortingEnabled

item

item(row: int, column: int) -> Any

X.item(row, column) -> PythonQt.QtGui.QTableWidgetItem

Supplemental documentation: Qt 5 reference:

QTableWidgetItem *QTableWidget::item(int row, int column) const

Returns the item for the given row and column if one has been set; otherwise returns nullptr.

See also setItem().

Upstream PySide2 reference signatures (binding differences may apply):

item(self, row: int, column: int) -> PySide2.QtWidgets.QTableWidgetItem

Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#item

itemActivated

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

Native PythonQt.QtGui.QTableWidget.itemActivated; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QTableWidget::itemActivated(QTableWidgetItem *item)

This signal is emitted when the specified item has been activated

Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#itemActivated

itemAt

itemAt(x: Any, y: Any) -> Any

X.itemAt(x, y) -> PythonQt.QtGui.QTableWidgetItem

Supplemental documentation: Qt 5 reference:

QTableWidgetItem *QTableWidget::itemAt(const QPoint \&point) const

Returns a pointer to the item at the given point, or returns nullptr if point is not covered by an item in the table widget.

See also item().

QTableWidgetItem *QTableWidget::itemAt(int ax, int ay) const

Returns the item at the position equivalent to QPoint(ax, ay) in the table widget's coordinate system, or returns nullptr if the specified point is not covered by an item in the table widget.

See also item().

Upstream PySide2 reference signatures (binding differences may apply):

itemAt(self, p: PySide2.QtCore.QPoint) -> PySide2.QtWidgets.QTableWidgetItem
itemAt(self, x: int, y: int) -> PySide2.QtWidgets.QTableWidgetItem

Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#itemAt

itemChanged

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

Native PythonQt.QtGui.QTableWidget.itemChanged; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QTableWidget::itemChanged(QTableWidgetItem *item)

This signal is emitted whenever the data of item has changed.

Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#itemChanged

itemClicked

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

Native PythonQt.QtGui.QTableWidget.itemClicked; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QTableWidget::itemClicked(QTableWidgetItem *item)

This signal is emitted whenever an item in the table is clicked. The item specified is the item that was clicked.

Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#itemClicked

itemDoubleClicked

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

Native PythonQt.QtGui.QTableWidget.itemDoubleClicked; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QTableWidget::itemDoubleClicked(QTableWidgetItem *item)

This signal is emitted whenever an item in the table is double clicked. The item specified is the item that was double clicked.

Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#itemDoubleClicked

itemEntered

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

Native PythonQt.QtGui.QTableWidget.itemEntered; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QTableWidget::itemEntered(QTableWidgetItem *item)

This signal is emitted when the mouse cursor enters an item. The item is the item entered.

This signal is only emitted when mouseTracking is turned on, or when a mouse button is pressed while moving into an item.

Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#itemEntered

itemFromIndex

itemFromIndex(index: Any) -> Any

X.itemFromIndex(index) -> PythonQt.QtGui.QTableWidgetItem

Supplemental documentation: Qt 5 reference:

[protected] QTableWidgetItem *QTableWidget::itemFromIndex(const QModelIndex \&index) const

Returns a pointer to the QTableWidgetItem associated with the given index.

Upstream PySide2 reference signatures (binding differences may apply):

itemFromIndex(self, index: PySide2.QtCore.QModelIndex) -> PySide2.QtWidgets.QTableWidgetItem

Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#itemFromIndex

itemPressed

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

Native PythonQt.QtGui.QTableWidget.itemPressed; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QTableWidget::itemPressed(QTableWidgetItem *item)

This signal is emitted whenever an item in the table is pressed. The item specified is the item that was pressed.

Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#itemPressed

itemPrototype

itemPrototype() -> Any

X.itemPrototype() -> PythonQt.QtGui.QTableWidgetItem

Supplemental documentation: Qt 5 reference:

const QTableWidgetItem *QTableWidget::itemPrototype() const

Returns the item prototype used by the table.

See also setItemPrototype().

Upstream PySide2 reference signatures (binding differences may apply):

itemPrototype(self) -> PySide2.QtWidgets.QTableWidgetItem

Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#itemPrototype

itemSelectionChanged

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

Native PythonQt.QtGui.QTableWidget.itemSelectionChanged; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QTableWidget::itemSelectionChanged()

This signal is emitted whenever the selection changes.

See also selectedItems() and QTableWidgetItem::isSelected().

Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#itemSelectionChanged

items

items(data: Any) -> tuple

X.items(data) -> tuple

Supplemental documentation: Qt 5 reference:

[protected] QList\<QTableWidgetItem *> QTableWidget::items(const QMimeData *data) const

Returns a list of pointers to the items contained in the data object. If the object was not created by a QTreeWidget in the same process, the list is empty.

Upstream PySide2 reference signatures (binding differences may apply):

items(self, data: PySide2.QtCore.QMimeData) -> typing.List[PySide2.QtWidgets.QTableWidgetItem]

Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#items

mimeData

mimeData(items: Any) -> Any

X.mimeData(items) -> PythonQt.QtCore.QMimeData

Supplemental documentation: Qt 5 reference:

[virtual protected] QMimeData *QTableWidget::mimeData(const QList\<QTableWidgetItem *> items) const

Returns an object that contains a serialized description of the specified items. The format used to describe the items is obtained from the mimeTypes() function.

If the list of items is empty, nullptr is returned rather than a serialized empty list.

Upstream PySide2 reference signatures (binding differences may apply):

mimeData(self, items: typing.Sequence[PySide2.QtWidgets.QTableWidgetItem]) -> PySide2.QtCore.QMimeData

Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#mimeData

mimeTypes

mimeTypes() -> tuple

X.mimeTypes() -> tuple

Supplemental documentation: Qt 5 reference:

[virtual protected] QStringList QTableWidget::mimeTypes() const

Returns a list of MIME types that can be used to describe a list of tablewidget items.

See also mimeData().

Upstream PySide2 reference signatures (binding differences may apply):

mimeTypes(self) -> typing.List[str]

Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#mimeTypes

objectNameChanged

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

Native PythonQt.QtGui.QTableWidget.objectNameChanged; argument details are not documented.

openPersistentEditor

openPersistentEditor(item: Any) -> None

X.openPersistentEditor(item)

Supplemental documentation: Qt 5 reference:

void QTableWidget::openPersistentEditor(QTableWidgetItem *item)

Opens an editor for the give item. The editor remains open after editing.

See also closePersistentEditor() and isPersistentEditorOpen().

Upstream PySide2 reference signatures (binding differences may apply):

openPersistentEditor(self, index: PySide2.QtCore.QModelIndex) -> None
openPersistentEditor(self, item: PySide2.QtWidgets.QTableWidgetItem) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#openPersistentEditor

pressed

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

Native PythonQt.QtGui.QTableWidget.pressed; argument details are not documented.

removeCellWidget

removeCellWidget(row: int, column: int) -> None

X.removeCellWidget(row, column)

Supplemental documentation: Qt 5 reference:

void QTableWidget::removeCellWidget(int row, int column)

Removes the widget set on the cell indicated by row and column.

This function was introduced in Qt 4.3.

Upstream PySide2 reference signatures (binding differences may apply):

removeCellWidget(self, row: int, column: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#removeCellWidget

removeColumn

removeColumn(column: int) -> None

X.removeColumn(column)

Supplemental documentation: Qt 5 reference:

[slot] void QTableWidget::removeColumn(int column)

Removes the column column and all its items from the table.

Upstream PySide2 reference signatures (binding differences may apply):

removeColumn(self, column: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#removeColumn

removeRow

removeRow(row: int) -> None

X.removeRow(row)

Supplemental documentation: Qt 5 reference:

[slot] void QTableWidget::removeRow(int row)

Removes the row row and all its items from the table.

Upstream PySide2 reference signatures (binding differences may apply):

removeRow(self, row: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#removeRow

resizeColumnToContents

resizeColumnToContents(column: Any) -> Any

X.resizeColumnToContents(column)

resizeColumnsToContents

resizeColumnsToContents() -> Any

X.resizeColumnsToContents()

resizeRowToContents

resizeRowToContents(row: Any) -> Any

X.resizeRowToContents(row)

resizeRowsToContents

resizeRowsToContents() -> Any

X.resizeRowsToContents()

row

row(item: Any) -> int

X.row(item) -> int

Supplemental documentation: Qt 5 reference:

int QTableWidget::row(const QTableWidgetItem *item) const

Returns the row for the item.

Upstream PySide2 reference signatures (binding differences may apply):

row(self, item: PySide2.QtWidgets.QTableWidgetItem) -> int

Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#row

rowAt

rowAt(y: Any) -> int

X.rowAt(y) -> int

rowCount instance-attribute

rowCount: int

Qt 5 reference:

rowCount : int

This property holds the number of rows in the table

By default, for a table constructed without row and column counts, this property contains a value of 0.

Access functions:

int rowCount() const
void setRowCount(int rows)

int QTableWidget::rowCount() const

Returns the number of rows.

Note: Getter function for property rowCount.

See also setRowCount().

Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#rowCount

rowHeight

rowHeight(row: Any) -> int

X.rowHeight(row) -> int

rowSpan

rowSpan(row: Any, column: Any) -> int

X.rowSpan(row, column) -> int

rowViewportPosition

rowViewportPosition(row: Any) -> int

X.rowViewportPosition(row) -> int

scrollToItem

scrollToItem(item: Any, hint: Any) -> None

X.scrollToItem(item, hint)

Supplemental documentation: Qt 5 reference:

[slot] void QTableWidget::scrollToItem(const QTableWidgetItem *item, QAbstractItemView::ScrollHint hint \= EnsureVisible)

Scrolls the view if necessary to ensure that the item is visible. The hint parameter specifies more precisely where the item should be located after the operation.

Upstream PySide2 reference signatures (binding differences may apply):

scrollToItem(self, item: PySide2.QtWidgets.QTableWidgetItem, hint: PySide2.QtWidgets.QAbstractItemView.ScrollHint=...) -> None

Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#scrollToItem

selectColumn

selectColumn(column: Any) -> Any

X.selectColumn(column)

selectRow

selectRow(row: Any) -> Any

X.selectRow(row)

selectedItems

selectedItems() -> tuple

X.selectedItems() -> tuple

Supplemental documentation: Qt 5 reference:

QList\<QTableWidgetItem *> QTableWidget::selectedItems() const

Returns a list of all selected items.

This function returns a list of pointers to the contents of the selected cells. Use the selectedIndexes() function to retrieve the complete selection including empty cells.

See also selectedIndexes().

Upstream PySide2 reference signatures (binding differences may apply):

selectedItems(self) -> typing.List[PySide2.QtWidgets.QTableWidgetItem]

Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#selectedItems