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

WA_ShowWithoutActivating is failing if application is started by another process

    XMLWordPrintable

Details

    • macOS

    Description

      If an application having WA_ShowWithoutActivating set is being forked/execed by another process, Another process goes behind and new GUI Appliaction windows comes in front and activated.

       

      This can be reproduced If following small application is started by other process via fork or exec

       

       int main(int argc, char *argv[])
      {
      QApplication a(argc, argv);
      QWidget w;
      w.setAttribute(Qt::WA_ShowWithoutActivating, true);
      w.show();
      for( int n=1; n<=10; n++ )
      {
      printf("Countdown %d of 10\n",n);
      sleep(1);
      }
      return a.exec();
      }

       

       

       

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            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