QStyleOptionHeaderV2 Class
QStyleOptionHeaderV2 类用于描述绘制标题栏的参数。更多内容...
| 标题: | #include <QStyleOptionHeaderV2> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets) target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
| qmake: | QT += widgets |
| 继承自: | QStyleOptionHeader |
公共函数
| QStyleOptionHeaderV2() | |
| QStyleOptionHeaderV2 & | operator=(const QStyleOptionHeaderV2 &) |
公共变量
| bool | isSectionDragTarget |
| Qt::TextElideMode | textElideMode |
成员函数文档
QStyleOptionHeaderV2::QStyleOptionHeaderV2()
构建一个 QStyleOptionHeaderV2,并将成员变量初始化为默认值。
[noexcept default] QStyleOptionHeaderV2 &QStyleOptionHeaderV2::operator=(const QStyleOptionHeaderV2 &)
将other 复制并赋值给此QStyleOptionHeaderV2 实例。
成员变量文档
bool QStyleOptionHeaderV2::isSectionDragTarget
该变量用于标识该部分是否为将要插入被拖动部分的位置
另请参阅 QHeaderView::setSectionsMovable 。
Qt::TextElideMode QStyleOptionHeaderV2::textElideMode
当文本过长而无法完全显示在单个项目中时,应在此处添加省略号
当文本过长无法完全显示在单个项目中时,应在此处添加省略号默认值为Qt::ElideNone 。
另请参阅 Qt::TextElideMode 。
© 2026 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.