Qt-UI

Q Slider

QLabel | | QCheckbox

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)));


QLabel | | QCheckbox

Options: