Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QProcess launches application in the background on MAC 10.6
Forum Updated to NodeBB v4.3 + New Features

QProcess launches application in the background on MAC 10.6

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 4.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yeaiping
    wrote on last edited by
    #1

    Dear all,

    When I use QProcess to start one application it is started in the background with to dock icon bouncing. The started application's window is under all other started applications.

    But on Windows, It's normal.

    A smile is my sharp weapon (:

    1 Reply Last reply
    0
    • frankcyblogic.deF Offline
      frankcyblogic.deF Offline
      frankcyblogic.de
      wrote on last edited by
      #2

      Well, have you tried "open [package dir]"?

      1 Reply Last reply
      0
      • Y Offline
        Y Offline
        yeaiping
        wrote on last edited by
        #3

        No, I only start the app. There are two application, a.app(QT GUI) and UICaller(CLI). In a.app
        @void main(int argc, char *argv[]) {
        if(argc == 1)
        {
        QProcess process;
        QString strAppName(/../UICaller);
        bool bRet = process.startDetached(strAppName);
        if(!bRet)
        {
        ///messagebox
        }
        exit(-1);
        }
        ....}@
        In UICaller , Elevation of privilege, and use "exec" to start a.app
        [quote author="unclewerner" date="1299660443"]Well, have you tried "open [package dir]"?[/quote]

        A smile is my sharp weapon (:

        1 Reply Last reply
        0
        • frankcyblogic.deF Offline
          frankcyblogic.deF Offline
          frankcyblogic.de
          wrote on last edited by
          #4

          Then the problem is within your UICaller. It needs to open the app package (not just exec it!). You can try this from the command line using "open <package>" compared to simply calling the executable within the package. There is a difference here on Mac. Although I'm not sure how it behaves when you open an app as a different user.

          1 Reply Last reply
          0
          • Y Offline
            Y Offline
            yeaiping
            wrote on last edited by
            #5

            Thanks, I'm try it

            A smile is my sharp weapon (:

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved