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

QProcess sometimes starts wrong program (mouse handling)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.1.0
    • 5.1.0 Beta 1
    • None
    • Windows 7
    • a4f7bb8733e048fbc6741189b7ceeb3e79af7f38

    Description

      The attached example application can be used to demonstrate the problem. When opening the other applications by clicking on the widgets, sometimes the wrong widget gets the mousePressEvent, causing wrong application to launch. If this happens, the widget that gets the event is always the one that last worked correctly. Note that this doesn't happen every time a widget is clicked, only maybe 15% of the time.

      To repro:
      1) Click on "notepad" -> notepad opens
      2) Close notepad by clicking on "X" at top right corner of window.
      3) Click on "calc" -> calc should open, but sometimes notepad opens.
      4) close calculator by clicking on "X" at top right corner of window.
      5) Repeat until you get wrong application to open.

      Note that closing the app using the mouse seems to be a requirement. If I used alt-f4 to close the launched application, I couldn't repro the problem.

      Attachments

        1. demoLauncher.7z
          1 kB
        2. qtbug31333_diag.patch
          3 kB
        3. qtbug31333.log
          98 kB
        4. qtbug31333.tar
          20 kB

        Issue Links

          For Gerrit Dashboard: QTBUG-31333
          # Subject Branch Project Status CR V

          Activity

            People

              kleint Friedemann Kleint
              e0348803 Miikka Heikkinen
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes