Compatibility Members for QSlider
The following members of class QSliderare part of the Qt compatibility layer. We advise against using them in new code.
Public Functions
QSlider(QWidget * parent, const char * name) | |
QSlider(Qt::Orientation orientation, QWidget * parent, const char * name) | |
QSlider(int minValue, int maxValue, int pageStep, int value, Qt::Orientation orientation, QWidget * parent = 0, const char * name = 0) | |
void | setTickmarks(TickPosition position) |
TickPosition | tickmarks() const |
- 11 public functions inherited from QAbstractSlider
- 57 public functions inherited from QWidget
- 8 public functions inherited from QObject
- 8 public functions inherited from QPaintDevice
Public Slots
void | addStep() |
void | subtractStep() |
- 1 public slot inherited from QWidget
Member Function Documentation
QSlider::QSlider(QWidget * parent, const char * name)
Use QSlider() and QObject::setObjectName() instead.
For example, if you have code like
QSlider *mySlider = new QSlider(parent, name);
you can rewrite it as
QSlider *mySlider = new QSlider(parent); mySlider->setObjectName(name);
QSlider::QSlider(Qt::Orientation orientation, QWidget * parent, const char * name)
Use QSlider() and QObject::setObjectName() instead.
For example, if you have code like
QSlider *mySlider = new QSlider(orientation, parent, name);
you can rewrite it as
QSlider *mySlider = new QSlider(orientation, parent); mySlider->setObjectName(name);
QSlider::QSlider(int minValue, int maxValue, int pageStep, int value, Qt::Orientation orientation, QWidget * parent = 0, const char * name = 0)
Use QSlider(), QObject::setObjectName() and the functionality inherited from QAbstractSlider instead.
For example, if you have code like
QSlider *mySlider = new QSlider(minValue, maxValue, pageStep, value, orientation, parent, name);
you can rewrite it as
QSlider *mySlider = new QSlider(orientation, parent); mySlider->setObjectName(name); mySlider->setMinimum(minValue); mySlider->setMaximum(maxValue); mySlider->setPageStep(pageStep); mySlider->setValue(value);
[slot]
void QSlider::addStep()
Use setValue() instead.
void QSlider::setTickmarks(TickPosition position)
Use setTickPosition() instead.
See also tickmarks().
[slot]
void QSlider::subtractStep()
Use setValue() instead.
TickPosition QSlider::tickmarks() const
Use tickPosition() instead.
See also setTickmarks().
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.