Qt::PenStyle for QComboBox
更多...
#include <DAPenStyleComboBox.h>
|
|
| DAPenStyleComboBox (QWidget *parent=Q_NULLPTR) |
| |
| QIcon | generatePenIcon (Qt::PenStyle s) const |
| | 生成icon
|
| |
|
void | updateItems () |
| |
| void | setStyleTextVisible (bool on) |
| | 是否在样式上显示文字
|
| |
|
bool | isStyleTextVisible () const |
| |
|
void | rebuildItems () |
| | 重建所有items
|
| |
| Qt::PenStyle | getCurrentPenStyle () const |
| | 获取当前的画笔类型
|
| |
|
| static QString | penStyleToString (Qt::PenStyle s) |
| | PenStyle转换为文本
|
| |
|
static void | drawPenStyle (QPainter *painter, const QRect &rect, const QPen &pen) |
| |
|
| void | addItem (Qt::PenStyle s) |
| | 添加item
|
| |
Qt::PenStyle for QComboBox
◆ addItem()
| void DA::DAPenStyleComboBox::addItem |
( |
Qt::PenStyle |
s | ) |
|
|
protected |
◆ currentPenStyleChanged
| void DA::DAPenStyleComboBox::currentPenStyleChanged |
( |
Qt::PenStyle |
s | ) |
|
|
signal |
◆ generatePenIcon()
| QIcon DA::DAPenStyleComboBox::generatePenIcon |
( |
Qt::PenStyle |
s | ) |
const |
◆ getCurrentPenStyle()
| Qt::PenStyle DA::DAPenStyleComboBox::getCurrentPenStyle |
( |
| ) |
const |
◆ penStyleToString()
| QString DA::DAPenStyleComboBox::penStyleToString |
( |
Qt::PenStyle |
s | ) |
|
|
static |
PenStyle转换为文本
- 参数
-
- 返回
- 如果没有对应的penstyle,返回QString()
◆ setCurrentPenStyle
| void DA::DAPenStyleComboBox::setCurrentPenStyle |
( |
Qt::PenStyle |
s | ) |
|
|
slot |
◆ setPen
| void DA::DAPenStyleComboBox::setPen |
( |
const QPen & |
p | ) |
|
|
slot |
◆ setPenColor
| void DA::DAPenStyleComboBox::setPenColor |
( |
const QColor & |
c | ) |
|
|
slot |
◆ setStyleTextVisible()
| void DA::DAPenStyleComboBox::setStyleTextVisible |
( |
bool |
on | ) |
|
是否在样式上显示文字
@default 默认为否
- 参数
-
该类的文档由以下文件生成:
- /home/runner/work/data-workbench/data-workbench/src/DACommonWidgets/DAPenStyleComboBox.h
- /home/runner/work/data-workbench/data-workbench/src/DACommonWidgets/DAPenStyleComboBox.cpp