PythonQt.QtGui.QHeaderView · declarations 001
Back to PythonQt.QtGui.QHeaderView
Fixed
instance-attribute
Fixed: Any
Interactive
instance-attribute
Interactive: Any
ResizeMode
instance-attribute
ResizeMode: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
ResizeToContents
instance-attribute
ResizeToContents: Any
Stretch
instance-attribute
Stretch: Any
activated
activated(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QHeaderView.activated; argument details are not documented.
cascadingSectionResizes
instance-attribute
cascadingSectionResizes: bool
Qt 5 reference:
cascadingSectionResizes : bool
This property holds whether interactive resizing will be cascaded to the following sections once the section being resized by the user has reached its minimum size
This property only affects sections that have Interactive as their resize mode.
The default value is false.
This property was introduced in Qt 4.2.
Access functions:
| bool | cascadingSectionResizes() const |
|---|---|
| void | setCascadingSectionResizes(bool enable) |
See also setSectionResizeMode().
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#cascadingSectionResizes
clicked
clicked(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QHeaderView.clicked; argument details are not documented.
count
count() -> int
X.count() -> int
Supplemental documentation: Qt 5 reference:
int QHeaderView::count() const
Returns the number of sections in the header.
See also sectionCountChanged() and length().
Upstream PySide2 reference signatures (binding differences may apply):
count(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#count
customContextMenuRequested
customContextMenuRequested(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QHeaderView.customContextMenuRequested; argument details are not documented.
defaultAlignment
instance-attribute
defaultAlignment: Any
Qt 5 reference:
defaultAlignment : Qt::Alignment
This property holds the default alignment of the text in each header section
This property was introduced in Qt 4.1.
Access functions:
| Qt::Alignment | defaultAlignment() const |
|---|---|
| void | setDefaultAlignment(Qt::Alignment alignment) |
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#defaultAlignment
defaultSectionSize
instance-attribute
defaultSectionSize: int
Qt 5 reference:
defaultSectionSize : int
This property holds the default size of the header sections before resizing.
This property only affects sections that have Interactive or Fixed as their resize mode.
By default, the value of this property is style dependent. Thus, when the style changes, this property updates from it. Calling setDefaultSectionSize() stops the updates, calling resetDefaultSectionSize() will restore default behavior.
Access functions:
| int | defaultSectionSize() const |
|---|---|
| void | setDefaultSectionSize(int size) |
| void | resetDefaultSectionSize() |
See also setSectionResizeMode() and minimumSectionSize.
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#defaultSectionSize
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QHeaderView.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/qheaderview.html#doItemsLayout
doubleClicked
doubleClicked(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QHeaderView.doubleClicked; argument details are not documented.
entered
entered(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QHeaderView.entered; argument details are not documented.
event
event(e: Any) -> bool
X.event(e) -> bool
Supplemental documentation: Qt 5 reference:
[override virtual protected] bool QHeaderView::event(QEvent *e)
Reimplements: QAbstractItemView::event(QEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
event(self, e: PySide2.QtCore.QEvent) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#event
firstSectionMovable
instance-attribute
firstSectionMovable: Any
Qt 5 reference:
firstSectionMovable : bool
This property holds whether the first column can be moved by the user
This property controls whether the first column can be moved by the user. In a QTreeView, the first column holds the tree structure and is therefore non-movable by default, even after setSectionsMovable(true).
It can be made movable again, for instance in the case of flat lists without a tree structure, by calling this method. In such a scenario, it is recommended to call QTreeView::setRootIsDecorated(false) as well.
Setting it to true has no effect unless setSectionsMovable(true) is called as well.
This property was introduced in Qt 5.11.
Access functions:
| bool | isFirstSectionMovable() const |
|---|---|
| void | setFirstSectionMovable(bool movable) |
See also setSectionsMovable().
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#firstSectionMovable
geometriesChanged
geometriesChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QHeaderView.geometriesChanged; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QHeaderView::geometriesChanged()
This signal is emitted when the header's geometries have changed.
This function was introduced in Qt 4.2.
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#geometriesChanged
headerDataChanged
headerDataChanged(orientation: Any, logicalFirst: int, logicalLast: int) -> None
X.headerDataChanged(orientation, logicalFirst, logicalLast)
Supplemental documentation: Qt 5 reference:
[slot] void QHeaderView::headerDataChanged(Qt::Orientation orientation, int logicalFirst, int logicalLast)
Updates the changed header sections with the given orientation, from logicalFirst to logicalLast inclusive.
Upstream PySide2 reference signatures (binding differences may apply):
headerDataChanged(self, orientation: PySide2.QtCore.Qt.Orientation, logicalFirst: int, logicalLast: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#headerDataChanged
hiddenSectionCount
hiddenSectionCount() -> int
X.hiddenSectionCount() -> int
Supplemental documentation: Qt 5 reference:
int QHeaderView::hiddenSectionCount() const
Returns the number of sections in the header that has been hidden.
This function was introduced in Qt 4.1.
See also setSectionHidden() and isSectionHidden().
Upstream PySide2 reference signatures (binding differences may apply):
hiddenSectionCount(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#hiddenSectionCount
hideSection
hideSection(logicalIndex: int) -> None
X.hideSection(logicalIndex)
Supplemental documentation: Qt 5 reference:
void QHeaderView::hideSection(int logicalIndex)
Hides the section specified by logicalIndex.
See also showSection(), isSectionHidden(), hiddenSectionCount(), and setSectionHidden().
Upstream PySide2 reference signatures (binding differences may apply):
hideSection(self, logicalIndex: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#hideSection
highlightSections
instance-attribute
highlightSections: bool
Qt 5 reference:
highlightSections : bool
This property holds whether the sections containing selected items are highlighted
By default, this property is false.
Access functions:
| bool | highlightSections() const |
|---|---|
| void | setHighlightSections(bool highlight) |
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#highlightSections
horizontalOffset
horizontalOffset() -> int
X.horizontalOffset() -> int
Supplemental documentation: Qt 5 reference:
[override virtual protected] int QHeaderView::horizontalOffset() const
Reimplements: QAbstractItemView::horizontalOffset() const.
Returns the horizontal offset of the header. This is 0 for vertical headers.
See also offset().
Upstream PySide2 reference signatures (binding differences may apply):
horizontalOffset(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#horizontalOffset
iconSizeChanged
iconSizeChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QHeaderView.iconSizeChanged; argument details are not documented.
indexAt
indexAt(p: Any) -> Any
X.indexAt(p) -> PythonQt.QtCore.QModelIndex
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/qheaderview.html#indexAt
initStyleOption
initStyleOption(option: Any) -> None
X.initStyleOption(option)
Supplemental documentation: Qt 5 reference:
[protected] void QHeaderView::initStyleOption(QStyleOptionHeader *option) const
Initialize option with the values from this QHeaderView. This method is useful for subclasses when they need a QStyleOptionHeader, but do not want to fill in all the information themselves.
See also QStyleOption::initFrom().
Upstream PySide2 reference signatures (binding differences may apply):
initStyleOption(self, option: PySide2.QtWidgets.QStyleOptionFrame) -> None
initStyleOption(self, option: PySide2.QtWidgets.QStyleOptionHeader) -> None
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#initStyleOption
initialize
initialize() -> None
X.initialize()
Upstream PySide2 reference signatures (binding differences may apply):
initialize(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#initialize
initializeSections
initializeSections(start: Any, end: Any) -> None
X.initializeSections(start, end)
Upstream PySide2 reference signatures (binding differences may apply):
initializeSections(self) -> None
initializeSections(self, start: int, end: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#initializeSections
isIndexHidden
isIndexHidden(index: Any) -> bool
X.isIndexHidden(index) -> bool
Upstream PySide2 reference signatures (binding differences may apply):
isIndexHidden(self, index: PySide2.QtCore.QModelIndex) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#isIndexHidden
isSectionHidden
isSectionHidden(logicalIndex: int) -> bool
X.isSectionHidden(logicalIndex) -> bool
Supplemental documentation: Qt 5 reference:
bool QHeaderView::isSectionHidden(int logicalIndex) const
Returns true if the section specified by logicalIndex is explicitly hidden from the
user; otherwise returns false.
See also hideSection(), showSection(), setSectionHidden(), and hiddenSectionCount().
Upstream PySide2 reference signatures (binding differences may apply):
isSectionHidden(self, logicalIndex: int) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#isSectionHidden
isSortIndicatorShown
isSortIndicatorShown() -> bool
X.isSortIndicatorShown() -> bool
Upstream PySide2 reference signatures (binding differences may apply):
isSortIndicatorShown(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#isSortIndicatorShown
length
length() -> int
X.length() -> int
Supplemental documentation: Qt 5 reference:
int QHeaderView::length() const
Returns the length along the orientation of the header.
See also sizeHint(), setSectionResizeMode(), and offset().
Upstream PySide2 reference signatures (binding differences may apply):
length(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#length
logicalIndex
logicalIndex(visualIndex: int) -> int
X.logicalIndex(visualIndex) -> int
Supplemental documentation: Qt 5 reference:
int QHeaderView::logicalIndex(int visualIndex) const
Returns the logicalIndex for the section at the given visualIndex position, or -1 if visualIndex \< 0 or visualIndex >\= QHeaderView::count().
Note that the visualIndex is not affected by hidden sections.
See also visualIndex() and sectionPosition().
Upstream PySide2 reference signatures (binding differences may apply):
logicalIndex(self, visualIndex: int) -> int
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#logicalIndex
logicalIndexAt
logicalIndexAt(x: Any, y: Any) -> int
X.logicalIndexAt(x, y) -> int
Supplemental documentation: Qt 5 reference:
int QHeaderView::logicalIndexAt(int position) const
Returns the section that covers the given position in the viewport.
See also visualIndexAt() and isSectionHidden().
int QHeaderView::logicalIndexAt(int x, int y) const
Returns the logical index of the section at the given coordinate. If the header is horizontal x will be used, otherwise y will be used to find the logical index.
int QHeaderView::logicalIndexAt(const QPoint \&pos) const
Returns the logical index of the section at the position given in pos. If the header is horizontal the x-coordinate will be used, otherwise the y-coordinate will be used to find the logical index.
See also sectionPosition().
Upstream PySide2 reference signatures (binding differences may apply):
logicalIndexAt(self, pos: PySide2.QtCore.QPoint) -> int
logicalIndexAt(self, position: int) -> int
logicalIndexAt(self, x: int, y: int) -> int
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#logicalIndexAt
maximumSectionSize
instance-attribute
maximumSectionSize: int
Qt 5 reference:
maximumSectionSize : int
This property holds the maximum size of the header sections.
The maximum section size is the largest section size allowed. The default value for this property is 1048575, which is also the largest possible size for a section. Setting maximum to -1 will reset the value to the largest section size.
With exception of stretch this property is honored by all resize modes
This property was introduced in Qt 5.2.
Access functions:
| int | maximumSectionSize() const |
|---|---|
| void | setMaximumSectionSize(int size) |
See also setSectionResizeMode() and defaultSectionSize.
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#maximumSectionSize
minimumSectionSize
instance-attribute
minimumSectionSize: int
Qt 5 reference:
minimumSectionSize : int
This property holds the minimum size of the header sections.
The minimum section size is the smallest section size allowed. If the minimum section size is set to -1, QHeaderView will use the maximum of the global strut or the font metrics size.
This property is honored by all resize modes.
This property was introduced in Qt 4.2.
Access functions:
| int | minimumSectionSize() const |
|---|---|
| void | setMinimumSectionSize(int size) |
See also setSectionResizeMode() and defaultSectionSize.
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#minimumSectionSize
mouseDoubleClickEvent
mouseDoubleClickEvent(e: Any) -> None
X.mouseDoubleClickEvent(e)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QHeaderView::mouseDoubleClickEvent(QMouseEvent *e)
Reimplements: QAbstractItemView::mouseDoubleClickEvent(QMouseEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
mouseDoubleClickEvent(self, e: PySide2.QtGui.QMouseEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#mouseDoubleClickEvent
mouseMoveEvent
mouseMoveEvent(e: Any) -> None
X.mouseMoveEvent(e)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QHeaderView::mouseMoveEvent(QMouseEvent *e)
Reimplements: QAbstractItemView::mouseMoveEvent(QMouseEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
mouseMoveEvent(self, e: PySide2.QtGui.QMouseEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#mouseMoveEvent
mousePressEvent
mousePressEvent(e: Any) -> None
X.mousePressEvent(e)
Supplemental documentation: Qt 5 reference:
[override virtual protected] void QHeaderView::mousePressEvent(QMouseEvent *e)
Reimplements: QAbstractItemView::mousePressEvent(QMouseEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
mousePressEvent(self, e: PySide2.QtGui.QMouseEvent) -> None
Source: https://doc.qt.io/archives/qt-5.15/qheaderview.html#mousePressEvent