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

Menu bar doesn't handle mouse click properly when there is a QGLWidget/native widget



    • Bug
    • Resolution: Done
    • P2: Important
    • 5.4.0
    • 5.3.0
    • Widgets: Main Window
    • None
    • Windows 7, Linux
    • 6080db8c6d345cf4ad573215828246e86f9dc41b (qtbase/5.4, 28.10.2014, 5.4)


      As opposed to QTBUG-37891 , this is present in 5.2.0, 5.2.1 and 5.3.1:

      Steps to reproduce:
      1. Download qtbug39313.zip attached to this report, build it on Window/Linux with Qt 5.3.
      3. Click file menu item 1. The menu unfolds as expected.
      4. Click the same file menu item again to collapse it. It collapses as expected, but not that it lost highlighting (Vista style only), which will not be restored until you move mouse. That's an error.
      5. Move the cursor to edit item and click it once to unfold. It doesn't unfold. That's an error.
      6. Click it again; only now it will unfold correctly.

      These steps can be repeated infinitely by moving between the two root menu items.

      Same with a native (non-GL) widget (option -n). Works with normal widgets (-l)


        1. main.zip
          2 kB
        2. qtbug39313_5_glwidget.log
          55 kB
        3. qtbug39313_5_label.log
          49 kB
        4. qtbug39313_5_mouse_glwidget.log
          30 kB
        5. qtbug39313_5_mouse_label.log
          30 kB
        6. qtbug39313_diag_4.diff
          8 kB
        7. qtbug39313_diag_5.diff
          16 kB
        8. qtbug39313_mouse_diag_5.diff
          9 kB
        9. qtbug39313.zip
          2 kB

        Issue Links

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



              jolind Jorgen Lind
              violetgiraffe Alex
              3 Vote for this issue
              8 Start watching this issue



                Gerrit Reviews

                  There are no open Gerrit changes