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

QKeyEvent::isAutoRepeat() returns incorrect values in QGLWidget when the QGLWidget is the child of another widget.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • 5.1.1
    • None
    • Linux 3.5.0-22-generic #34-Ubuntu SMP x86_64 GNU/Linux
      Qt 5.1.0 (64bit)

    Description

      When a QGLWidget is set as the child of another widget, it's keyPressEvent and keyReleaseEvents QKeyEvent::isAutoRepeat() return "false" when a key is held and a mouse is over the QGLWidget.

      Steps to reproduce:
      1. Run and put the mouse inside the QGLWidget.
      2. Click once and hold down any keyboard key.
      > isAutoRepeat() reports false, should be true.
      3. With the key held, move the mouse cursor out of the window.
      > isAutoRepeat() retports true
      4. With the key held, move the mouse cursor back inside the window.
      > isAutoRepeat() reports false again, should be true.

      Attachments

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

        Activity

          People

            paeglis Gatis Paeglis
            bogomips Mips
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes