DtkWidget
DTK Widget module
|
Public 成员函数 | |
SliderStrip (Qt::Orientation orie, QWidget *parent=nullptr) | |
QSize | sizeHint () const override |
void | setScaleInfo (QStringList scaleInfo, QSlider::TickPosition tickPosition) |
SliderStrip::setScaleInfo 设置显示刻度线和刻度值 | |
void | setMarkList (QList< int > list, QSlider::TickPosition tickPosition) |
SliderStrip::setMarkList 设置显示刻度线(不显示刻度值) | |
QList< int > | getList () |
SliderStrip::getList 返回刻度线的 list | |
QStringList | getScaleInfo () |
SliderStrip::getScaleInfo 返回刻度值的 list | |
Protected 成员函数 | |
void | paintEvent (QPaintEvent *event) override |
SliderStrip::paintEvent | |
bool | event (QEvent *e) override |
SliderStrip::event | |
|
overrideprotected |
QList< int > SliderStrip::getList | ( | ) |
SliderStrip::getList 返回刻度线的 list
QStringList SliderStrip::getScaleInfo | ( | ) |
SliderStrip::getScaleInfo 返回刻度值的 list
|
overrideprotected |
void SliderStrip::setMarkList | ( | QList< int > | list, |
QSlider::TickPosition | tickPosition | ||
) |
SliderStrip::setMarkList 设置显示刻度线(不显示刻度值)
[in] | list | 显示的刻度线的list |
[in] | tickPosition | 显示的方向枚举值 |
void SliderStrip::setScaleInfo | ( | QStringList | scaleInfo, |
QSlider::TickPosition | tickPosition | ||
) |
SliderStrip::setScaleInfo 设置显示刻度线和刻度值
[in] | scaleInfo | 显示的刻度值 |
[in] | tickPosition | 显示的方向枚举值 |