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

Adding a QGLWidget to a QMainWindow hinders keyboard input from reaching editable widgets

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.0.2
    • 5.0.1
    • GUI: OpenGL
    • None
    • Linux, GNOME 3.6
    • 3f99983e76d359cb45b15ae96150d4cc798b61c7

    Description

      I have complete code demonstrating the exact issue in detal. See Bug.tar.gz.

      When you add a QGLWidget to your main window, keyboard input are hindered from reaching the editable widget. Keyboard input ONLY reaches the editable widget if you hover that widget with the mouse. Should you hover say the QGLWidget even though the QTreeWidget is being edited, keyboard input are hindered from reaching the QTreeWidget.

      Scenario: start editing the QTreeWidget as provided in the code. Write text when hovering the QTreeWidget -> it works. Keep writing text but hover the QGLWidget instead, or try to hover the statusbar. It doesn't work. Keyboard input is only reaching the QTreeWidget when hovering it (or having the mouse outside of the window). If you change the QGLWidget to a normal QWidget it works as it should. Text input is reching the focused widget even when not hovering it.

      (Microsoft) Windows is not affected but Linux is. I'm using Qt 5.0.1 on Fedora 18 with GNOME 3.6. Tried with Intel driver and NVIDIA, all the same results.

      Attachments

        1. Bug.tar.gz
          10 kB
          Alex Hultman
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rodal Samuel Rødal
            alexhultman Alex Hultman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes