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

QTest::mouseDClick on QWidget does not get release mouse event

    XMLWordPrintable

Details

    • macOS

    Description

      In a GUI QTest application when QTest::mouseDClick is used to simulate a user double clicking on a widget. The widget is not getting the release mouse event triggered which is expected after a simulated double click.

      In Attached example (testing Button) UI is created using QML which displays the object being tested on (clicked). The testing framework is <QTest> and the object tested inherits from `QQuickItem` which is loaded from the QML source into a `QQuickWidget` so it is possible to click on the window wrapper widget and receive the click on the item being tested.

      In example the event received both on the QQuickWidget and the inner item is a doubleClickEvent, on the Button it is emitted the push and double click signals but no release signal or release mouse event.
      It can also be noted by the color of the button which is highlighted (blue), meaning that it is held pressed by the mouse not yet released.

      Attachments

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

        Activity

          People

            vhilshei Volker Hilsheimer
            irfan.omair@digia.com Irfan Omair
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes