Qt-UI
Q Slider
QSlider *createSlider(int minimum, int maximum, int value)
{
QSlider *slider = new QSlider(Qt::Horizontal);
slider->setRange(minimum * 16, maximum * 16);
slider->setSingleStep(16);
slider->setPageStep((maximum - minimum) / 10 * 16);
slider->setTickInterval((maximum - minimum) / 10 * 16);
slider->setTickPosition(QSlider::TicksBelow);
slider->setValue(value * 16);
return(slider);
}
QSlider *slider = createSlider(0, 100, value);
connect(slider, SIGNAL(valueChanged(int)), this, SLOT(slide(int)));
{
QSlider *slider = new QSlider(Qt::Horizontal);
slider->setRange(minimum * 16, maximum * 16);
slider->setSingleStep(16);
slider->setPageStep((maximum - minimum) / 10 * 16);
slider->setTickInterval((maximum - minimum) / 10 * 16);
slider->setTickPosition(QSlider::TicksBelow);
slider->setValue(value * 16);
return(slider);
}
QSlider *slider = createSlider(0, 100, value);
connect(slider, SIGNAL(valueChanged(int)), this, SLOT(slide(int)));