Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-5988

QAbstractSlider: keypad navigation is slow

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.6.1
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            fenglich Frans Englich (closed Nokia identity)
            fenglich Frans Englich (closed Nokia identity)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes