QStyleOptionHeaderV2 Class

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

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

公共函數

QStyleOptionHeaderV2 ()

公共變量

bool isSectionDragTarget
Qt::TextElideMode textElideMode

詳細描述

成員函數文檔編製

QStyleOptionHeaderV2:: QStyleOptionHeaderV2 ()

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

成員變量文檔編製

bool QStyleOptionHeaderV2:: isSectionDragTarget

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

另請參閱 QHeaderView::setSectionsMovable .

Qt::TextElideMode QStyleOptionHeaderV2:: textElideMode

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

默認值為 Qt::ElideNone .

另請參閱 Qt::TextElideMode .