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

QTest mouseClick away from QMenuBar does not close QMenu

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.3.0
    • Testing: qtestlib
    • None
    • OS: Windows 10
      Python: 3.8.10
      Qt: PySide6
    • Windows

    Description

      After a menubar item is clicked and the submenu appears, clicking outside the menu with QTest.mouseClick does not close the menu.

      The tests use pytest-qt, which have nothing more than a wrapper around PySide6's QtTest.QTest mouse action functions.

      I've attached source code and a gif of the problem. I've also opened an issue on pytest-qt's issue tracker:

      pytest-qt Issue 430

      Attachments

        1. qtbug-104075.7z
          8 kB
          Adam Hendry
        2. qtbug-104075.gif
          547 kB
          Adam Hendry

        Activity

          People

            macadder Jason McDonald
            adamhendry Adam Hendry
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: