PythonQt.QtGui.QTableWidget · declarations 003
Back to PythonQt.QtGui.QTableWidget
selectedRanges
selectedRanges() -> tuple
X.selectedRanges() -> tuple
Supplemental documentation: Qt 5 reference:
QList\<QTableWidgetSelectionRange> QTableWidget::selectedRanges() const
Returns a list of all selected ranges.
See also QTableWidgetSelectionRange.
Upstream PySide2 reference signatures (binding differences may apply):
selectedRanges(self) -> typing.List[PySide2.QtWidgets.QTableWidgetSelectionRange]
Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#selectedRanges
setCellWidget
setCellWidget(row: int, column: int, widget: Any) -> None
X.setCellWidget(row, column, widget)
Supplemental documentation: Qt 5 reference:
void QTableWidget::setCellWidget(int row, int column, QWidget *widget)
Sets the given widget to be displayed in the cell in the given row and column, passing the ownership of the widget to the table.
If cell widget A is replaced with cell widget B, cell widget A will be deleted. For example, in the code snippet below, the QLineEdit object will be deleted.
setCellWidget(row, column, new QLineEdit);
...
setCellWidget(row, column, new QTextEdit);
This function was introduced in Qt 4.1.
See also cellWidget().
Upstream PySide2 reference signatures (binding differences may apply):
setCellWidget(self, row: int, column: int, widget: PySide2.QtWidgets.QWidget) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#setCellWidget
setColumnCount
setColumnCount(columns: int) -> None
X.setColumnCount(columns)
Supplemental documentation: Qt 5 reference:
void QTableWidget::setColumnCount(int columns)
Sets the number of columns in this table's model to columns. If this is less than columnCount(), the data in the unwanted columns is discarded.
Note: Setter function for property columnCount.
See also columnCount() and setRowCount().
Upstream PySide2 reference signatures (binding differences may apply):
setColumnCount(self, columns: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#setColumnCount
setColumnHidden
setColumnHidden(column: Any, hide: Any) -> Any
X.setColumnHidden(column, hide)
setColumnWidth
setColumnWidth(column: Any, width: Any) -> Any
X.setColumnWidth(column, width)
setCornerButtonEnabled
setCornerButtonEnabled(enable: Any) -> Any
X.setCornerButtonEnabled(enable)
setCurrentCell
setCurrentCell(row: int, column: int, command: Any) -> None
X.setCurrentCell(row, column, command)
Supplemental documentation: Qt 5 reference:
void QTableWidget::setCurrentCell(int row, int column)
Sets the current cell to be the cell at position (row, column).
Depending on the current selection mode, the cell may also be selected.
This function was introduced in Qt 4.1.
See also setCurrentItem(), currentRow(), and currentColumn().
void QTableWidget::setCurrentCell(int row, int column, QItemSelectionModel::SelectionFlags command)
Sets the current cell to be the cell at position (row, column), using the given command.
This function was introduced in Qt 4.4.
See also setCurrentItem(), currentRow(), and currentColumn().
Upstream PySide2 reference signatures (binding differences may apply):
setCurrentCell(self, row: int, column: int) -> None
setCurrentCell(self, row: int, column: int, command: PySide2.QtCore.QItemSelectionModel.SelectionFlags) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#setCurrentCell
setCurrentItem
setCurrentItem(item: Any, command: Any) -> None
X.setCurrentItem(item, command)
Supplemental documentation: Qt 5 reference:
void QTableWidget::setCurrentItem(QTableWidgetItem *item)
Sets the current item to item.
Unless the selection mode is NoSelection, the item is also selected.
See also currentItem() and setCurrentCell().
void QTableWidget::setCurrentItem(QTableWidgetItem *item, QItemSelectionModel::SelectionFlags command)
Sets the current item to be item, using the given command.
This function was introduced in Qt 4.4.
See also currentItem() and setCurrentCell().
Upstream PySide2 reference signatures (binding differences may apply):
setCurrentItem(self, item: PySide2.QtWidgets.QTableWidgetItem) -> None
setCurrentItem(self, item: PySide2.QtWidgets.QTableWidgetItem, command: PySide2.QtCore.QItemSelectionModel.SelectionFlags) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#setCurrentItem
setGridStyle
setGridStyle(style: Any) -> Any
X.setGridStyle(style)
setHorizontalHeader
setHorizontalHeader(header: Any) -> Any
X.setHorizontalHeader(header)
setHorizontalHeaderItem
setHorizontalHeaderItem(column: int, item: Any) -> None
X.setHorizontalHeaderItem(column, item)
Supplemental documentation: Qt 5 reference:
void QTableWidget::setHorizontalHeaderItem(int column, QTableWidgetItem *item)
Sets the horizontal header item for column column to item. If necessary, the column count is increased to fit the item. The previous header item (if there was one) is deleted.
See also horizontalHeaderItem().
Upstream PySide2 reference signatures (binding differences may apply):
setHorizontalHeaderItem(self, column: int, item: PySide2.QtWidgets.QTableWidgetItem) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#setHorizontalHeaderItem
setHorizontalHeaderLabels
setHorizontalHeaderLabels(labels: Any) -> None
X.setHorizontalHeaderLabels(labels)
Supplemental documentation: Qt 5 reference:
void QTableWidget::setHorizontalHeaderLabels(const QStringList \&labels)
Sets the horizontal header labels using labels.
Upstream PySide2 reference signatures (binding differences may apply):
setHorizontalHeaderLabels(self, labels: typing.Sequence[str]) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#setHorizontalHeaderLabels
setItem
setItem(row: int, column: int, item: Any) -> None
X.setItem(row, column, item)
Supplemental documentation: Qt 5 reference:
void QTableWidget::setItem(int row, int column, QTableWidgetItem *item)
Sets the item for the given row and column to item.
The table takes ownership of the item.
Note that if sorting is enabled (see sortingEnabled) and column is the current sort column, the row will be moved to the sorted position determined by item.
If you want to set several items of a particular row (say, by calling setItem() in a loop), you may want to turn off sorting before doing so, and turn it back on afterwards; this will allow you to use the same row argument for all items in the same row (i.e. setItem() will not move the row).
See also item() and takeItem().
Upstream PySide2 reference signatures (binding differences may apply):
setItem(self, row: int, column: int, item: PySide2.QtWidgets.QTableWidgetItem) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#setItem
setItemPrototype
setItemPrototype(item: Any) -> None
X.setItemPrototype(item)
Supplemental documentation: Qt 5 reference:
void QTableWidget::setItemPrototype(const QTableWidgetItem *item)
Sets the item prototype for the table to the specified item.
The table widget will use the item prototype clone function when it needs to create a new table item. For example when the user is editing in an empty cell. This is useful when you have a QTableWidgetItem subclass and want to make sure that QTableWidget creates instances of your subclass.
The table takes ownership of the prototype.
See also itemPrototype().
Upstream PySide2 reference signatures (binding differences may apply):
setItemPrototype(self, item: PySide2.QtWidgets.QTableWidgetItem) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#setItemPrototype
setModel
setModel(model: Any) -> None
X.setModel(model)
Upstream PySide2 reference signatures (binding differences may apply):
setModel(self, model: PySide2.QtCore.QAbstractItemModel) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#setModel
setRangeSelected
setRangeSelected(range: Any, select: bool) -> None
X.setRangeSelected(range, select)
Supplemental documentation: Qt 5 reference:
void QTableWidget::setRangeSelected(const QTableWidgetSelectionRange \&range, bool select)
Selects or deselects the range depending on select.
Upstream PySide2 reference signatures (binding differences may apply):
setRangeSelected(self, range: PySide2.QtWidgets.QTableWidgetSelectionRange, select: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#setRangeSelected
setRowCount
setRowCount(rows: int) -> None
X.setRowCount(rows)
Supplemental documentation: Qt 5 reference:
void QTableWidget::setRowCount(int rows)
Sets the number of rows in this table's model to rows. If this is less than rowCount(), the data in the unwanted rows is discarded.
Note: Setter function for property rowCount.
See also rowCount() and setColumnCount().
Upstream PySide2 reference signatures (binding differences may apply):
setRowCount(self, rows: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#setRowCount
setRowHeight
setRowHeight(row: Any, height: Any) -> Any
X.setRowHeight(row, height)
setShowGrid
setShowGrid(show: Any) -> Any
X.setShowGrid(show)
setSortingEnabled
setSortingEnabled(enable: bool) -> None
X.setSortingEnabled(enable)
Upstream PySide2 reference signatures (binding differences may apply):
setSortingEnabled(self, enable: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#setSortingEnabled
setSpan
setSpan(row: Any, column: Any, rowSpan: Any, columnSpan: Any) -> Any
X.setSpan(row, column, rowSpan, columnSpan)
setVerticalHeader
setVerticalHeader(header: Any) -> Any
X.setVerticalHeader(header)
setVerticalHeaderItem
setVerticalHeaderItem(row: int, item: Any) -> None
X.setVerticalHeaderItem(row, item)
Supplemental documentation: Qt 5 reference:
void QTableWidget::setVerticalHeaderItem(int row, QTableWidgetItem *item)
Sets the vertical header item for row row to item.
See also verticalHeaderItem().
Upstream PySide2 reference signatures (binding differences may apply):
setVerticalHeaderItem(self, row: int, item: PySide2.QtWidgets.QTableWidgetItem) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#setVerticalHeaderItem
setVerticalHeaderLabels
setVerticalHeaderLabels(labels: Any) -> None
X.setVerticalHeaderLabels(labels)
Supplemental documentation: Qt 5 reference:
void QTableWidget::setVerticalHeaderLabels(const QStringList \&labels)
Sets the vertical header labels using labels.
Upstream PySide2 reference signatures (binding differences may apply):
setVerticalHeaderLabels(self, labels: typing.Sequence[str]) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#setVerticalHeaderLabels
showColumn
showColumn(column: Any) -> Any
X.showColumn(column)
showGrid
instance-attribute
showGrid: Any
showRow
showRow(row: Any) -> Any
X.showRow(row)
sortByColumn
sortByColumn(column: Any, order: Any) -> Any
X.sortByColumn(column, order)
sortItems
sortItems(column: int, order: Any) -> None
X.sortItems(column, order)
Supplemental documentation: Qt 5 reference:
void QTableWidget::sortItems(int column, Qt::SortOrder order \= Qt::AscendingOrder)
Sorts all the rows in the table widget based on column and order.
Upstream PySide2 reference signatures (binding differences may apply):
sortItems(self, column: int, order: PySide2.QtCore.Qt.SortOrder=...) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#sortItems
sortingEnabled
instance-attribute
sortingEnabled: Any
supportedDropActions
supportedDropActions() -> Any
X.supportedDropActions()
Supplemental documentation: Qt 5 reference:
[virtual protected] Qt::DropActions QTableWidget::supportedDropActions() const
Returns the drop actions supported by this view.
See also Qt::DropActions.
Upstream PySide2 reference signatures (binding differences may apply):
supportedDropActions(self) -> PySide2.QtCore.Qt.DropActions
Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#supportedDropActions
takeHorizontalHeaderItem
takeHorizontalHeaderItem(column: int) -> Any
X.takeHorizontalHeaderItem(column) -> PythonQt.QtGui.QTableWidgetItem
Supplemental documentation: Qt 5 reference:
QTableWidgetItem *QTableWidget::takeHorizontalHeaderItem(int column)
Removes the horizontal header item at column from the header without deleting it.
This function was introduced in Qt 4.1.
Upstream PySide2 reference signatures (binding differences may apply):
takeHorizontalHeaderItem(self, column: int) -> PySide2.QtWidgets.QTableWidgetItem
Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#takeHorizontalHeaderItem
takeItem
takeItem(row: int, column: int) -> Any
X.takeItem(row, column) -> PythonQt.QtGui.QTableWidgetItem
Supplemental documentation: Qt 5 reference:
QTableWidgetItem *QTableWidget::takeItem(int row, int column)
Removes the item at row and column from the table without deleting it.
Upstream PySide2 reference signatures (binding differences may apply):
takeItem(self, row: int, column: int) -> PySide2.QtWidgets.QTableWidgetItem
Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#takeItem
takeVerticalHeaderItem
takeVerticalHeaderItem(row: int) -> Any
X.takeVerticalHeaderItem(row) -> PythonQt.QtGui.QTableWidgetItem
Supplemental documentation: Qt 5 reference:
QTableWidgetItem *QTableWidget::takeVerticalHeaderItem(int row)
Removes the vertical header item at row from the header without deleting it.
This function was introduced in Qt 4.1.
Upstream PySide2 reference signatures (binding differences may apply):
takeVerticalHeaderItem(self, row: int) -> PySide2.QtWidgets.QTableWidgetItem
Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#takeVerticalHeaderItem
verticalHeader
verticalHeader() -> Any
X.verticalHeader() -> PythonQt.QtGui.QHeaderView
verticalHeaderItem
verticalHeaderItem(row: int) -> Any
X.verticalHeaderItem(row) -> PythonQt.QtGui.QTableWidgetItem
Supplemental documentation: Qt 5 reference:
QTableWidgetItem *QTableWidget::verticalHeaderItem(int row) const
Returns the vertical header item for row row.
See also setVerticalHeaderItem().
Upstream PySide2 reference signatures (binding differences may apply):
verticalHeaderItem(self, row: int) -> PySide2.QtWidgets.QTableWidgetItem
Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#verticalHeaderItem
viewportEntered
viewportEntered(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTableWidget.viewportEntered; argument details are not documented.
visualColumn
visualColumn(logicalColumn: int) -> int
X.visualColumn(logicalColumn) -> int
Supplemental documentation: Qt 5 reference:
int QTableWidget::visualColumn(int logicalColumn) const
Returns the visual column of the given logicalColumn.
Upstream PySide2 reference signatures (binding differences may apply):
visualColumn(self, logicalColumn: int) -> int
Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#visualColumn
visualItemRect
visualItemRect(item: Any) -> Any
X.visualItemRect(item) -> PythonQt.QtCore.QRect
Supplemental documentation: Qt 5 reference:
QRect QTableWidget::visualItemRect(const QTableWidgetItem *item) const
Returns the rectangle on the viewport occupied by the item at item.
Upstream PySide2 reference signatures (binding differences may apply):
visualItemRect(self, item: PySide2.QtWidgets.QTableWidgetItem) -> PySide2.QtCore.QRect
Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#visualItemRect
visualRow
visualRow(logicalRow: int) -> int
X.visualRow(logicalRow) -> int
Supplemental documentation: Qt 5 reference:
int QTableWidget::visualRow(int logicalRow) const
Returns the visual row of the given logicalRow.
Upstream PySide2 reference signatures (binding differences may apply):
visualRow(self, logicalRow: int) -> int
Source: https://doc.qt.io/archives/qt-5.15/qtablewidget.html#visualRow