Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Some future release
-
None
-
9f6eec91ce4a2a2ac7aae0779e238c0b2c90d0d1
Description
Consider this sample program(extracted from the qmediaplayer demo):
#include <QApplication> #include <QSlider> int main(int argc, char **argv) { QApplication app(argc, argv); QSlider slider(Qt::Horizontal); slider.setRange(0, 100); slider.setPageStep(5); slider.setSingleStep(1); slider.setFixedWidth(120); slider.setValue(50); slider.showFullScreen(); return app.exec(); }
On Windows, win32-msvc2005, this slider works fine with arrow keys, because the default keyboard repetition rate is fairly high. On for instance Nokia N97 however, the slider suffers from a significant usability problem due to the keyboard repetition rate being slower. One solution to this is to in the application increase the singleStep() with an arbitrary value, if keypad navigation is enabled. Not practical.
To what other widgets do this problem apply to and what is a good solution?
It is tempting to say that the problem is outside Qt: that the keyboard repetition/behavior needs to be configured correctly for these kind of widgets. Another approach, is to make Qt accommodate.