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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.3.0
    • Fix Version/s: 5.4.0
    • Component/s: Widgets: Main Window
    • Labels:
      None
    • Environment:
      Windows 7, Linux
    • Commits:
      6080db8c6d345cf4ad573215828246e86f9dc41b (qtbase/5.4, 28.10.2014, 5.4)

      Description

      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)

        Attachments

        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.

            Activity

              People

              Assignee:
              jolind Jorgen Lind
              Reporter:
              violetgiraffe Alex
              Votes:
              3 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes