QStyleOptionHeaderV2 Class

The QStyleOptionHeaderV2 class is used to describe the parameters for drawing a header. More...

Header: #include <QStyleOptionHeaderV2>
CMake: find_package(Qt6 REQUIRED COMPONENTS Widgets)
target_link_libraries(mytarget PRIVATE Qt6::Widgets)
qmake: QT += widgets
Inherits: QStyleOptionHeader

Public Types

enum StyleOptionType { Type }
enum StyleOptionVersion { Version }

Public Functions

QStyleOptionHeaderV2()
QStyleOptionHeaderV2(const QStyleOptionHeaderV2 &other)
QStyleOptionHeaderV2 &operator=(const QStyleOptionHeaderV2 &)

Public Variables

bool isSectionDragTarget
Qt::TextElideMode textElideMode
int unused

Detailed Description

Member Type Documentation

enum QStyleOptionHeaderV2::StyleOptionType

enum QStyleOptionHeaderV2::StyleOptionVersion

Member Function Documentation

QStyleOptionHeaderV2::QStyleOptionHeaderV2()

Constructs a QStyleOptionHeaderV2, initializing the members variables to their default values.

QStyleOptionHeaderV2::QStyleOptionHeaderV2(const QStyleOptionHeaderV2 &other)

Default constructs an instance of QStyleOptionHeaderV2.

QStyleOptionHeaderV2 &QStyleOptionHeaderV2::operator=(const QStyleOptionHeaderV2 &)

Copy-assignment operator.

Member Variable Documentation

bool QStyleOptionHeaderV2::isSectionDragTarget

This variable holds whether the section is the location at which a dragged section will be inserted

See also QHeaderView::setSectionsMovable.

Qt::TextElideMode QStyleOptionHeaderV2::textElideMode

where ellipsis should be added for text that is too long to fit into an item

The default value is Qt::ElideNone.

See also Qt::TextElideMode.

int QStyleOptionHeaderV2::unused

© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.