|
tools
|
下限・上限の2値を同時に表示・操作できるスライダーウィジェット [詳解]
#include <doubleSlider.h>
公開メンバ関数 | |
| DoubleSlider (Qt::Orientation orientation, QWidget *parent=nullptr) | |
| コンストラクタ | |
公開変数類 | |
| int | lowerValue |
| 下限ハンドルの値 | |
| int | upperValue |
| 上限ハンドルの値 | |
限定公開メンバ関数 | |
| void | paintEvent (QPaintEvent *event) override |
| ペイントイベント。2つのハンドルをスロット上に描画する | |
下限・上限の2値を同時に表示・操作できるスライダーウィジェット
lowerValue と upperValue の2つのパブリックメンバを持ち、 paintEvent でそれぞれの位置に青いハンドルを描画します。
doubleSlider.h の 30 行目に定義があります。
|
inline |
コンストラクタ
| orientation | スライダーの向き(Qt::Horizontal / Qt::Vertical) |
| parent | 親ウィジェット(デフォルト: nullptr) |
doubleSlider.h の 39 行目に定義があります。
|
inlineoverrideprotected |
| int DoubleSlider::lowerValue |
下限ハンドルの値
doubleSlider.h の 42 行目に定義があります。
| int DoubleSlider::upperValue |
上限ハンドルの値
doubleSlider.h の 43 行目に定義があります。