6.0.0-rc4Source

QStyleOptionSlider Class

The QStyleOptionSlider class describes the parameters for drawing a slider. More…

Header#include <QStyleOptionSlider>
CMaketarget_link_libraries(app PRIVATE Nt::Widgets)
ModuleNt Widgets C++ Classes
InheritsQStyleOption

List of all members, including inherited members

Public Functions

Public Variables

Detailed Description

See also QStyleOption and QSlider.

Member Function Documentation

QStyleOptionSlider::QStyleOptionSlider()

Constructs an option for a slider.

Member Variable Documentation

int QStyleOptionSlider::maximum

The largest value of the slider.

int QStyleOptionSlider::minimum

The smallest value of the slider.

Qt::Orientation QStyleOptionSlider::orientation

The direction in which the handle moves, horizontal by default.

int QStyleOptionSlider::pageStep

The part of the range that fits in a page. A scroll bar makes its handle that part of the groove long; a slider does not use it and leaves it at 0.

int QStyleOptionSlider::sliderPosition

The value that the handle is at, between minimum and maximum.

bool QStyleOptionSlider::tickMarks

Whether a dial draws its notches. A slider does not use it.

bool QStyleOptionSlider::wrapping

Whether a dial goes all the way round, so that its smallest and largest value are at the same place. A slider does not use it.