QwtSlider

LGPL

A slider from Qwt.

[ Qwt docs | Back to Index ]

Styles and Code

Code
windows
sgi
QwtSlider *w = new QwtSlider( 0, 0, QwtSlider::Vertical, QwtSlider::Left, QwtSlider::BgSlot ); w->setRange(0.0, 100.0, 1.0, 5); w->setScaleMaxMinor(5); w->setValue( 42 );
QwtSlider *w = new QwtSlider( 0, 0, QwtSlider::Vertical, QwtSlider::None, QwtSlider::BgTrough); w->setRange(0.0,100.0,1.0, 10); w->setValue( 42 );
QwtSlider *w = new QwtSlider( 0, 0, QwtSlider::Vertical, QwtSlider::Right, QwtSlider::BgSlot|QwtSlider::BgTrough ); w->setThumbWidth(20); w->setBorderWidth(1); w->setRange(0.0, 4.0, 0.01); w->setScale(1.0, 1.0e4, TRUE); w->setScaleMaxMinor(10); w->setValue( 42 );
QwtSlider *w = new QwtSlider( 0, 0, QwtSlider::Horizontal, QwtSlider::Top, QwtSlider::BgSlot ); w->setRange(0.0, 100.0, 1.0, 5); w->setScaleMaxMinor(5); w->setValue( 42 );
QwtSlider *w = new QwtSlider( 0, 0, QwtSlider::Horizontal, QwtSlider::None, QwtSlider::BgTrough); w->setRange(0.0,100.0,1.0, 10); w->setValue( 42 );
QwtSlider *w = new QwtSlider( 0, 0, QwtSlider::Horizontal, QwtSlider::Bottom, QwtSlider::BgSlot|QwtSlider::BgTrough ); w->setThumbWidth(20); w->setBorderWidth(1); w->setRange(0.0, 4.0, 0.01); w->setScale(1.0, 1.0e4, TRUE); w->setScaleMaxMinor(10); w->setValue( 42 );

[ Back to Index ]

Licenses are noted in grayed out, smaller text. Closed indicates that the widget is available under a closed-source compatible license. Dual licensing is possible.

Provided by the DigitalFanatics, the host of the Independent Qt Tutorial.