PythonQt.QtGui.QTableView · declarations 001
Back to PythonQt.QtGui.QTableView
activated
activated(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTableView.activated; argument details are not documented.
clearSpans
clearSpans() -> None
X.clearSpans()
Supplemental documentation: Qt 5 reference:
void QTableView::clearSpans()
Removes all row and column spans in the table view.
This function was introduced in Qt 4.4.
See also setSpan().
Upstream PySide2 reference signatures (binding differences may apply):
clearSpans(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtableview.html#clearSpans
clicked
clicked(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTableView.clicked; argument details are not documented.
columnAt
columnAt(x: int) -> int
X.columnAt(x) -> int
Supplemental documentation: Qt 5 reference:
int QTableView::columnAt(int x) const
Returns the column in which the given x-coordinate, x, in contents coordinates is located.
Note: This function returns -1 if the given coordinate is not valid (has no column).
See also rowAt().
Upstream PySide2 reference signatures (binding differences may apply):
columnAt(self, x: int) -> int
Source: https://doc.qt.io/archives/qt-5.15/qtableview.html#columnAt
columnSpan
columnSpan(row: int, column: int) -> int
X.columnSpan(row, column) -> int
Supplemental documentation: Qt 5 reference:
int QTableView::columnSpan(int row, int column) const
Returns the column span of the table element at (row, column). The default is 1.
This function was introduced in Qt 4.2.
See also setSpan() and rowSpan().
Upstream PySide2 reference signatures (binding differences may apply):
columnSpan(self, row: int, column: int) -> int
Source: https://doc.qt.io/archives/qt-5.15/qtableview.html#columnSpan
columnViewportPosition
columnViewportPosition(column: int) -> int
X.columnViewportPosition(column) -> int
Supplemental documentation: Qt 5 reference:
int QTableView::columnViewportPosition(int column) const
Returns the x-coordinate in contents coordinates of the given column.
Upstream PySide2 reference signatures (binding differences may apply):
columnViewportPosition(self, column: int) -> int
Source: https://doc.qt.io/archives/qt-5.15/qtableview.html#columnViewportPosition
columnWidth
columnWidth(column: int) -> int
X.columnWidth(column) -> int
Supplemental documentation: Qt 5 reference:
int QTableView::columnWidth(int column) const
Returns the width of the given column.
See also setColumnWidth(), resizeColumnToContents(), and rowHeight().
Upstream PySide2 reference signatures (binding differences may apply):
columnWidth(self, column: int) -> int
Source: https://doc.qt.io/archives/qt-5.15/qtableview.html#columnWidth
cornerButtonEnabled
instance-attribute
cornerButtonEnabled: Any
Qt 5 reference:
cornerButtonEnabled : bool
This property holds whether the button in the top-left corner is enabled
If this property is true then button in the top-left corner of the table view is
enabled. Clicking on this button will select all the cells in the table view.
This property is true by default.
This property was introduced in Qt 4.3.
Access functions:
| bool | isCornerButtonEnabled() const |
|---|---|
| void | setCornerButtonEnabled(bool enable) |
Source: https://doc.qt.io/archives/qt-5.15/qtableview.html#cornerButtonEnabled
customContextMenuRequested
customContextMenuRequested(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTableView.customContextMenuRequested; argument details are not documented.
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTableView.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/qtableview.html#doItemsLayout
doubleClicked
doubleClicked(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTableView.doubleClicked; argument details are not documented.
entered
entered(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTableView.entered; argument details are not documented.
gridStyle
instance-attribute
gridStyle: Any
Qt 5 reference:
gridStyle : Qt::PenStyle
This property holds the pen style used to draw the grid.
This property holds the style used when drawing the grid (see showGrid).
Access functions:
| Qt::PenStyle | gridStyle() const |
|---|---|
| void | setGridStyle(Qt::PenStyle style) |
Source: https://doc.qt.io/archives/qt-5.15/qtableview.html#gridStyle
hideColumn
hideColumn(column: int) -> None
X.hideColumn(column)
Supplemental documentation: Qt 5 reference:
[slot] void QTableView::hideColumn(int column)
Hide the given column.
See also showColumn() and hideRow().
Upstream PySide2 reference signatures (binding differences may apply):
hideColumn(self, column: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtableview.html#hideColumn
hideRow
hideRow(row: int) -> None
X.hideRow(row)
Supplemental documentation: Qt 5 reference:
[slot] void QTableView::hideRow(int row)
Hide the given row.
See also showRow() and hideColumn().
Upstream PySide2 reference signatures (binding differences may apply):
hideRow(self, row: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtableview.html#hideRow
horizontalHeader
horizontalHeader() -> Any
X.horizontalHeader() -> PythonQt.QtGui.QHeaderView
Supplemental documentation: Qt 5 reference:
QHeaderView *QTableView::horizontalHeader() const
Returns the table view's horizontal header.
See also setHorizontalHeader(), verticalHeader(), and QAbstractItemModel::headerData().
Upstream PySide2 reference signatures (binding differences may apply):
horizontalHeader(self) -> PySide2.QtWidgets.QHeaderView
Source: https://doc.qt.io/archives/qt-5.15/qtableview.html#horizontalHeader
horizontalOffset
horizontalOffset() -> int
X.horizontalOffset() -> int
Supplemental documentation: Qt 5 reference:
[override virtual protected] int QTableView::horizontalOffset() const
Reimplements: QAbstractItemView::horizontalOffset() const.
Returns the horizontal offset of the items in the table view.
Note that the table view uses the horizontal header section positions to determine the positions of columns in the view.
See also verticalOffset().
Upstream PySide2 reference signatures (binding differences may apply):
horizontalOffset(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qtableview.html#horizontalOffset
iconSizeChanged
iconSizeChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTableView.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 QTableView::indexAt(const QPoint \&pos) const
Reimplements: QAbstractItemView::indexAt(const QPoint \&point) const.
Returns the index position of the model item corresponding to the table item at position pos in contents coordinates.
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/qtableview.html#indexAt
isColumnHidden
isColumnHidden(column: int) -> bool
X.isColumnHidden(column) -> bool
Supplemental documentation: Qt 5 reference:
bool QTableView::isColumnHidden(int column) const
Returns true if the given column is hidden; otherwise returns false.
See also isRowHidden().
Upstream PySide2 reference signatures (binding differences may apply):
isColumnHidden(self, column: int) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qtableview.html#isColumnHidden
isCornerButtonEnabled
isCornerButtonEnabled() -> bool
X.isCornerButtonEnabled() -> bool
Upstream PySide2 reference signatures (binding differences may apply):
isCornerButtonEnabled(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qtableview.html#isCornerButtonEnabled
isIndexHidden
isIndexHidden(index: Any) -> bool
X.isIndexHidden(index) -> bool
Supplemental documentation: Qt 5 reference:
[override virtual protected] bool QTableView::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/qtableview.html#isIndexHidden
isRowHidden
isRowHidden(row: int) -> bool
X.isRowHidden(row) -> bool
Supplemental documentation: Qt 5 reference:
bool QTableView::isRowHidden(int row) const
Returns true if the given row is hidden; otherwise returns false.
See also isColumnHidden().
Upstream PySide2 reference signatures (binding differences may apply):
isRowHidden(self, row: int) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qtableview.html#isRowHidden
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/qtableview.html#isSortingEnabled
moveCursor
moveCursor(cursorAction: Any, modifiers: Any) -> Any
X.moveCursor(cursorAction, modifiers) -> PythonQt.QtCore.QModelIndex
Supplemental documentation: Qt 5 reference:
[override virtual protected] QModelIndex QTableView::moveCursor(QAbstractItemView::CursorAction cursorAction, Qt::KeyboardModifiers modifiers)
Reimplements: QAbstractItemView::moveCursor(QAbstractItemView::CursorAction cursorAction, Qt::KeyboardModifiers modifiers).
Moves the cursor in accordance with the given cursorAction, using the information provided by the modifiers.
See also QAbstractItemView::CursorAction.
Upstream PySide2 reference signatures (binding differences may apply):
moveCursor(self, cursorAction: PySide2.QtWidgets.QAbstractItemView.CursorAction, modifiers: PySide2.QtCore.Qt.KeyboardModifiers) -> PySide2.QtCore.QModelIndex
Source: https://doc.qt.io/archives/qt-5.15/qtableview.html#moveCursor
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTableView.objectNameChanged; argument details are not documented.
paintEvent
paintEvent(e: Any) -> None
X.paintEvent(e)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QTableView::paintEvent(QPaintEvent *event)
Reimplements: QAbstractScrollArea::paintEvent(QPaintEvent *event).
Paints the table on receipt of the given paint event event.
Upstream PySide2 reference signatures (binding differences may apply):
paintEvent(self, e: PySide2.QtGui.QPaintEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtableview.html#paintEvent
pressed
pressed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QTableView.pressed; argument details are not documented.
resizeColumnToContents
resizeColumnToContents(column: int) -> None
X.resizeColumnToContents(column)
Supplemental documentation: Qt 5 reference:
[slot] void QTableView::resizeColumnToContents(int column)
Resizes the given column based on the size hints of the delegate used to render each item in the column.
Note: Only visible columns will be resized. Reimplement sizeHintForColumn() to resize hidden columns as well.
See also resizeColumnsToContents(), sizeHintForColumn(), and QHeaderView::resizeContentsPrecision().
Upstream PySide2 reference signatures (binding differences may apply):
resizeColumnToContents(self, column: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtableview.html#resizeColumnToContents
resizeColumnsToContents
resizeColumnsToContents() -> None
X.resizeColumnsToContents()
Supplemental documentation: Qt 5 reference:
[slot] void QTableView::resizeColumnsToContents()
Resizes all columns based on the size hints of the delegate used to render each item in the columns.
See also resizeColumnToContents(), sizeHintForColumn(), and QHeaderView::resizeContentsPrecision().
Upstream PySide2 reference signatures (binding differences may apply):
resizeColumnsToContents(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtableview.html#resizeColumnsToContents
resizeRowToContents
resizeRowToContents(row: int) -> None
X.resizeRowToContents(row)
Supplemental documentation: Qt 5 reference:
[slot] void QTableView::resizeRowToContents(int row)
Resizes the given row based on the size hints of the delegate used to render each item in the row.
See also resizeRowsToContents(), sizeHintForRow(), and QHeaderView::resizeContentsPrecision().
Upstream PySide2 reference signatures (binding differences may apply):
resizeRowToContents(self, row: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtableview.html#resizeRowToContents
resizeRowsToContents
resizeRowsToContents() -> None
X.resizeRowsToContents()
Supplemental documentation: Qt 5 reference:
[slot] void QTableView::resizeRowsToContents()
Resizes all rows based on the size hints of the delegate used to render each item in the rows.
See also resizeRowToContents(), sizeHintForRow(), and QHeaderView::resizeContentsPrecision().
Upstream PySide2 reference signatures (binding differences may apply):
resizeRowsToContents(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtableview.html#resizeRowsToContents
rowAt
rowAt(y: int) -> int
X.rowAt(y) -> int
Supplemental documentation: Qt 5 reference:
int QTableView::rowAt(int y) const
Returns the row in which the given y-coordinate, y, in contents coordinates is located.
Note: This function returns -1 if the given coordinate is not valid (has no row).
See also columnAt().
Upstream PySide2 reference signatures (binding differences may apply):
rowAt(self, y: int) -> int
Source: https://doc.qt.io/archives/qt-5.15/qtableview.html#rowAt
rowHeight
rowHeight(row: int) -> int
X.rowHeight(row) -> int
Supplemental documentation: Qt 5 reference:
int QTableView::rowHeight(int row) const
Returns the height of the given row.
See also setRowHeight(), resizeRowToContents(), and columnWidth().
Upstream PySide2 reference signatures (binding differences may apply):
rowHeight(self, row: int) -> int
Source: https://doc.qt.io/archives/qt-5.15/qtableview.html#rowHeight
rowSpan
rowSpan(row: int, column: int) -> int
X.rowSpan(row, column) -> int
Supplemental documentation: Qt 5 reference:
int QTableView::rowSpan(int row, int column) const
Returns the row span of the table element at (row, column). The default is 1.
This function was introduced in Qt 4.2.
See also setSpan() and columnSpan().
Upstream PySide2 reference signatures (binding differences may apply):
rowSpan(self, row: int, column: int) -> int
Source: https://doc.qt.io/archives/qt-5.15/qtableview.html#rowSpan
rowViewportPosition
rowViewportPosition(row: int) -> int
X.rowViewportPosition(row) -> int
Supplemental documentation: Qt 5 reference:
int QTableView::rowViewportPosition(int row) const
Returns the y-coordinate in contents coordinates of the given row.
Upstream PySide2 reference signatures (binding differences may apply):
rowViewportPosition(self, row: int) -> int
Source: https://doc.qt.io/archives/qt-5.15/qtableview.html#rowViewportPosition
scrollContentsBy
scrollContentsBy(dx: int, dy: int) -> None
X.scrollContentsBy(dx, dy)
Upstream PySide2 reference signatures (binding differences may apply):
scrollContentsBy(self, dx: int, dy: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtableview.html#scrollContentsBy
scrollTo
scrollTo(index: Any, hint: Any) -> None
X.scrollTo(index, hint)
Upstream PySide2 reference signatures (binding differences may apply):
scrollTo(self, index: PySide2.QtCore.QModelIndex, hint: PySide2.QtWidgets.QAbstractItemView.ScrollHint=...) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtableview.html#scrollTo
selectColumn
selectColumn(column: int) -> None
X.selectColumn(column)
Supplemental documentation: Qt 5 reference:
[slot] void QTableView::selectColumn(int column)
Selects the given column in the table view if the current SelectionMode and SelectionBehavior allows columns to be selected.
See also selectRow().
Upstream PySide2 reference signatures (binding differences may apply):
selectColumn(self, column: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtableview.html#selectColumn