The QSlider documentation says, “A slider accepts focus on Tab and provides both a mouse wheel and a keyboard interface.” Is there an easy way to assign a hotkey to it to give it focus similar to how one can assign an Alt key for QCheckboxes?
The QSlider documentation says, A slider accepts focus on Tab and provides both a
Share
If you have an associated label, you should be able to use
QLabel::setBuddy(QWidget*). Otherwise, you could override thekeyPressEventfor the parent form that would have focus and then callQSlider::setFocus(Qt::FocusReason).