PythonQt.QtGui.QHeaderView · declarations 002
Back to PythonQt.QtGui.QHeaderView
mouseReleaseEvent
mouseReleaseEvent(e: Any) -> None
X.mouseReleaseEvent(e)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QHeaderView::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/qheaderview.html#mouseReleaseEvent
moveCursor
moveCursor(arg__1: Any, arg__2: Any) -> Any
X.moveCursor(arg__1, arg__2) -> PythonQt.QtCore.QModelIndex
Upstream PySide2 reference signatures (binding differences may apply):
moveCursor(self, arg__1: PySide2.QtWidgets.QAbstractItemView.CursorAction, arg__2: PySide2.QtCore.Qt.KeyboardModifiers) -> PySide2.QtCore.QModelIndex
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#moveCursor
moveSection
moveSection(*args: Any, **kwargs: Any) -> None
X.moveSection(from, to)
Supplemental documentation: Qt 5 reference:
void QHeaderView::moveSection(int from, int to)
Moves the section at visual index from to occupy visual index to.
See also sectionsMoved().
Upstream PySide2 reference signatures (binding differences may apply):
moveSection(self, from_: int, to: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#moveSection
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QHeaderView.objectNameChanged; argument details are not documented.
offset
offset() -> int
X.offset() -> int
Supplemental documentation: Qt 5 reference:
int QHeaderView::offset() const
Returns the offset of the header: this is the header's left-most (or top-most for vertical headers) visible pixel.
See also setOffset().
Upstream PySide2 reference signatures (binding differences may apply):
offset(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#offset
orientation
orientation() -> Any
X.orientation()
Supplemental documentation: Qt 5 reference:
Qt::Orientation QHeaderView::orientation() const
Returns the orientation of the header.
See also Qt::Orientation.
Upstream PySide2 reference signatures (binding differences may apply):
orientation(self) -> PySide2.QtCore.Qt.Orientation
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#orientation
paintEvent
paintEvent(e: Any) -> None
X.paintEvent(e)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QHeaderView::paintEvent(QPaintEvent *e)
Reimplements: QAbstractScrollArea::paintEvent(QPaintEvent *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/qheaderview.html#paintEvent
paintSection
paintSection(painter: Any, rect: Any, logicalIndex: int) -> None
X.paintSection(painter, rect, logicalIndex)
Supplemental documentation: Qt 5 reference:
[virtual protected] void QHeaderView::paintSection(QPainter *painter, const QRect \&rect, int logicalIndex) const
Paints the section specified by the given logicalIndex, using the given painter and rect.
Normally, you do not have to call this function.
Upstream PySide2 reference signatures (binding differences may apply):
paintSection(self, painter: PySide2.QtGui.QPainter, rect: PySide2.QtCore.QRect, logicalIndex: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#paintSection
pressed
pressed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QHeaderView.pressed; argument details are not documented.
reset
reset() -> None
X.reset()
Supplemental documentation: Qt 5 reference:
[override virtual] void QHeaderView::reset()
Reimplements: QAbstractItemView::reset().
Upstream PySide2 reference signatures (binding differences may apply):
reset(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#reset
resetDefaultSectionSize
resetDefaultSectionSize() -> None
X.resetDefaultSectionSize()
Upstream PySide2 reference signatures (binding differences may apply):
resetDefaultSectionSize(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#resetDefaultSectionSize
resizeContentsPrecision
resizeContentsPrecision() -> int
X.resizeContentsPrecision() -> int
Supplemental documentation: Qt 5 reference:
int QHeaderView::resizeContentsPrecision() const
Returns how precise QHeaderView will calculate on ResizeToContents.
This function was introduced in Qt 5.2.
See also setResizeContentsPrecision() and setSectionResizeMode().
Upstream PySide2 reference signatures (binding differences may apply):
resizeContentsPrecision(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#resizeContentsPrecision
resizeSection
resizeSection(logicalIndex: int, size: int) -> None
X.resizeSection(logicalIndex, size)
Supplemental documentation: Qt 5 reference:
void QHeaderView::resizeSection(int logicalIndex, int size)
Resizes the section specified by logicalIndex to size measured in pixels. The size parameter must be a value larger or equal to zero. A size equal to zero is however not recommended. In that situation hideSection should be used instead.
See also sectionResized(), sectionSize(), and hideSection().
Upstream PySide2 reference signatures (binding differences may apply):
resizeSection(self, logicalIndex: int, size: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#resizeSection
resizeSections
resizeSections(mode: Any) -> None
X.resizeSections(mode)
Supplemental documentation: Qt 5 reference:
[protected slot] void QHeaderView::resizeSections()
Resizes the sections according to their size hints. Normally, you do not have to call this function.
void QHeaderView::resizeSections(QHeaderView::ResizeMode mode)
Resizes the sections according to the given mode, ignoring the current resize mode.
See also sectionResized().
Upstream PySide2 reference signatures (binding differences may apply):
resizeSections(self) -> None
resizeSections(self, mode: PySide2.QtWidgets.QHeaderView.ResizeMode) -> None
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#resizeSections
restoreState
restoreState(state: Any) -> bool
X.restoreState(state) -> bool
Supplemental documentation: Qt 5 reference:
bool QHeaderView::restoreState(const QByteArray \&state)
Restores the state of this header view. This function returns true if the state was
restored; otherwise returns false.
This function was introduced in Qt 4.3.
See also saveState().
Upstream PySide2 reference signatures (binding differences may apply):
restoreState(self, state: PySide2.QtCore.QByteArray) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#restoreState
saveState
saveState() -> Any
X.saveState() -> PythonQt.QtCore.QByteArray
Supplemental documentation: Qt 5 reference:
QByteArray QHeaderView::saveState() const
Saves the current state of this header view.
To restore the saved state, pass the return value to restoreState().
This function was introduced in Qt 4.3.
See also restoreState().
Upstream PySide2 reference signatures (binding differences may apply):
saveState(self) -> PySide2.QtCore.QByteArray
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#saveState
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/qheaderview.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/qheaderview.html#scrollTo
sectionClicked
sectionClicked(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QHeaderView.sectionClicked; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QHeaderView::sectionClicked(int logicalIndex)
This signal is emitted when a section is clicked. The section's logical index is specified by logicalIndex.
Note that the sectionPressed signal will also be emitted.
See also setSectionsClickable() and sectionPressed().
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#sectionClicked
sectionCountChanged
sectionCountChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QHeaderView.sectionCountChanged; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QHeaderView::sectionCountChanged(int oldCount, int newCount)
This signal is emitted when the number of sections changes, i.e., when sections are added or deleted. The original count is specified by oldCount, and the new count by newCount.
See also count(), length(), and headerDataChanged().
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#sectionCountChanged
sectionDoubleClicked
sectionDoubleClicked(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QHeaderView.sectionDoubleClicked; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QHeaderView::sectionDoubleClicked(int logicalIndex)
This signal is emitted when a section is double-clicked. The section's logical index is specified by logicalIndex.
See also setSectionsClickable().
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#sectionDoubleClicked
sectionEntered
sectionEntered(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QHeaderView.sectionEntered; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QHeaderView::sectionEntered(int logicalIndex)
This signal is emitted when the cursor moves over the section and the left mouse button is pressed. The section's logical index is specified by logicalIndex.
This function was introduced in Qt 4.3.
See also setSectionsClickable() and sectionPressed().
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#sectionEntered
sectionHandleDoubleClicked
sectionHandleDoubleClicked(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QHeaderView.sectionHandleDoubleClicked; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QHeaderView::sectionHandleDoubleClicked(int logicalIndex)
This signal is emitted when a section is double-clicked. The section's logical index is specified by logicalIndex.
See also setSectionsClickable().
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#sectionHandleDoubleClicked
sectionMoved
sectionMoved(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QHeaderView.sectionMoved; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QHeaderView::sectionMoved(int logicalIndex, int oldVisualIndex, int newVisualIndex)
This signal is emitted when a section is moved. The section's logical index is specified by logicalIndex, the old index by oldVisualIndex, and the new index position by newVisualIndex.
See also moveSection().
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#sectionMoved
sectionPosition
sectionPosition(logicalIndex: int) -> int
X.sectionPosition(logicalIndex) -> int
Supplemental documentation: Qt 5 reference:
int QHeaderView::sectionPosition(int logicalIndex) const
Returns the section position of the given logicalIndex, or -1 if the section is hidden. The position is measured in pixels from the first visible item's top-left corner to the top-left corner of the item with logicalIndex. The measurement is along the x-axis for horizontal headers and along the y-axis for vertical headers.
See also sectionViewportPosition().
Upstream PySide2 reference signatures (binding differences may apply):
sectionPosition(self, logicalIndex: int) -> int
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#sectionPosition
sectionPressed
sectionPressed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QHeaderView.sectionPressed; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QHeaderView::sectionPressed(int logicalIndex)
This signal is emitted when a section is pressed. The section's logical index is specified by logicalIndex.
See also setSectionsClickable().
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#sectionPressed
sectionResizeMode
sectionResizeMode(logicalIndex: int) -> Any
X.sectionResizeMode(logicalIndex)
Supplemental documentation: Qt 5 reference:
QHeaderView::ResizeMode QHeaderView::sectionResizeMode(int logicalIndex) const
Returns the resize mode that applies to the section specified by the given logicalIndex.
This function was introduced in Qt 5.0.
See also setSectionResizeMode().
Upstream PySide2 reference signatures (binding differences may apply):
sectionResizeMode(self, logicalIndex: int) -> PySide2.QtWidgets.QHeaderView.ResizeMode
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#sectionResizeMode
sectionResized
sectionResized(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QHeaderView.sectionResized; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QHeaderView::sectionResized(int logicalIndex, int oldSize, int newSize)
This signal is emitted when a section is resized. The section's logical number is specified by logicalIndex, the old size by oldSize, and the new size by newSize.
See also resizeSection().
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#sectionResized
sectionSize
sectionSize(logicalIndex: int) -> int
X.sectionSize(logicalIndex) -> int
Supplemental documentation: Qt 5 reference:
int QHeaderView::sectionSize(int logicalIndex) const
Returns the width (or height for vertical headers) of the given logicalIndex.
See also length(), setSectionResizeMode(), and defaultSectionSize().
Upstream PySide2 reference signatures (binding differences may apply):
sectionSize(self, logicalIndex: int) -> int
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#sectionSize
sectionSizeFromContents
sectionSizeFromContents(logicalIndex: int) -> Any
X.sectionSizeFromContents(logicalIndex) -> PythonQt.QtCore.QSize
Supplemental documentation: Qt 5 reference:
[virtual protected] QSize QHeaderView::sectionSizeFromContents(int logicalIndex) const
Returns the size of the contents of the section specified by the given logicalIndex.
See also defaultSectionSize().
Upstream PySide2 reference signatures (binding differences may apply):
sectionSizeFromContents(self, logicalIndex: int) -> PySide2.QtCore.QSize
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#sectionSizeFromContents
sectionSizeHint
sectionSizeHint(logicalIndex: int) -> int
X.sectionSizeHint(logicalIndex) -> int
Supplemental documentation: Qt 5 reference:
int QHeaderView::sectionSizeHint(int logicalIndex) const
Returns a suitable size hint for the section specified by logicalIndex.
See also sizeHint(), defaultSectionSize(), minimumSectionSize(), and maximumSectionSize().
Upstream PySide2 reference signatures (binding differences may apply):
sectionSizeHint(self, logicalIndex: int) -> int
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#sectionSizeHint
sectionViewportPosition
sectionViewportPosition(logicalIndex: int) -> int
X.sectionViewportPosition(logicalIndex) -> int
Supplemental documentation: Qt 5 reference:
int QHeaderView::sectionViewportPosition(int logicalIndex) const
Returns the section viewport position of the given logicalIndex.
If the section is hidden, the return value is undefined.
See also sectionPosition() and isSectionHidden().
Upstream PySide2 reference signatures (binding differences may apply):
sectionViewportPosition(self, logicalIndex: int) -> int
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#sectionViewportPosition
sectionsClickable
sectionsClickable() -> bool
X.sectionsClickable() -> bool
Supplemental documentation: Qt 5 reference:
bool QHeaderView::sectionsClickable() const
Returns true if the header is clickable; otherwise returns false. A clickable header
could be set up to allow the user to change the representation of the data in the view
related to the header.
This function was introduced in Qt 5.0.
See also setSectionsClickable().
Upstream PySide2 reference signatures (binding differences may apply):
sectionsClickable(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#sectionsClickable
sectionsHidden
sectionsHidden() -> bool
X.sectionsHidden() -> bool
Supplemental documentation: Qt 5 reference:
bool QHeaderView::sectionsHidden() const
Returns true if sections in the header has been hidden; otherwise returns false;
This function was introduced in Qt 4.1.
See also setSectionHidden().
Upstream PySide2 reference signatures (binding differences may apply):
sectionsHidden(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#sectionsHidden
sectionsMovable
sectionsMovable() -> bool
X.sectionsMovable() -> bool
Supplemental documentation: Qt 5 reference:
bool QHeaderView::sectionsMovable() const
Returns true if the header can be moved by the user; otherwise returns false.
By default, sections are movable in QTreeView (except for the first one), and not movable in QTableView.
This function was introduced in Qt 5.0.
See also setSectionsMovable().
Upstream PySide2 reference signatures (binding differences may apply):
sectionsMovable(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#sectionsMovable
sectionsMoved
sectionsMoved() -> bool
X.sectionsMoved() -> bool
Supplemental documentation: Qt 5 reference:
bool QHeaderView::sectionsMoved() const
Returns true if sections in the header has been moved; otherwise returns false;
See also moveSection().
Upstream PySide2 reference signatures (binding differences may apply):
sectionsMoved(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#sectionsMoved
setCascadingSectionResizes
setCascadingSectionResizes(enable: bool) -> None
X.setCascadingSectionResizes(enable)
Upstream PySide2 reference signatures (binding differences may apply):
setCascadingSectionResizes(self, enable: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#setCascadingSectionResizes
setDefaultAlignment
setDefaultAlignment(alignment: Any) -> None
X.setDefaultAlignment(alignment)
Upstream PySide2 reference signatures (binding differences may apply):
setDefaultAlignment(self, alignment: PySide2.QtCore.Qt.Alignment) -> None
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#setDefaultAlignment
setDefaultSectionSize
setDefaultSectionSize(size: int) -> None
X.setDefaultSectionSize(size)
Upstream PySide2 reference signatures (binding differences may apply):
setDefaultSectionSize(self, size: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#setDefaultSectionSize
setHighlightSections
setHighlightSections(highlight: bool) -> None
X.setHighlightSections(highlight)
Upstream PySide2 reference signatures (binding differences may apply):
setHighlightSections(self, highlight: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#setHighlightSections