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

Dialog fails to show on top when other application is activated before raising

    XMLWordPrintable

Details

    Description

      On MacOSX there seems to be a problem with setting the focus to QDialog and/or parent QWidget if a process has been started using X11.

      I was facing the problem when testing QtCreator built on Qt 5.0.0 and creating a plain C++ project. Executing this project starts the qtcreator_process_stub which is running inside a terminal that uses X11.

      Steps to reproduce:

      • get the Qt 5.0.0 release including Qt Creator built on Qt5
      • create a non-qt project -> plain c or plain c++
      • set a breakpoint to the main() function
      • start debugging from inside Creator

      Current behaviour:

      • qtcreator_process_stub runs as X11 process and X11 grabs focus
      • "Debugging Helper" dialog comes up (but is shown behind Creator) - you'll only recognize that something needs user-interaction because of the bouncing Creator logo
      • if you click onto the bouncing logo or on Creator the dialog is placed upon Creator and you can go on as usual

      Expected behaviour:

      • the dialog should be shown on top of it's parent no matter if there's another application having actual focus or not (as it is when using Qt Creator compiled with Qt4 or if you use Creator on Win/Linux)

      Attachments

        Issue Links

          Activity

            People

              dedietri Gabriel de Dietrich (drgvond)
              cstenger Christian Stenger
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: