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. MacOS Mavericks Issue...
Qt 6.11 is out! See what's new in the release blog

MacOS Mavericks Issue...

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 2.7k 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.
  • M Offline
    M Offline
    marksibly
    wrote on last edited by
    #1

    Hi,

    My app is behaving differently when running it standalone vs via QtCreator on Mavericks.

    All is well when I run from QtCreator (once I added the 'font hack' to get widget fonts to line up), but when I run the app standalone, the app is not initially activating. Also, something weird is happening when trying to run a process from within the app - I don't seem to be getting stdout/stderr feedback from the process. Both these issues go away when running the app from QtCreator.

    I tried executing /Developer/Tools/Qt/macdeployqt on the app, but it doesn't help.

    I also just tried upgrading to 4.8.5, but same problem.

    Any ideas?

    Bye!
    Mark

    1 Reply Last reply
    0
    • M Offline
      M Offline
      marksibly
      wrote on last edited by
      #2

      [edit]Actually...looks like the app is activating at startup, but then immediately deactivating.[/edit]

      1 Reply Last reply
      0
      • M Offline
        M Offline
        marksibly
        wrote on last edited by
        #3

        Ok, looks like the app activation issue is my fault.

        The app is started by a launcher with the 'open' tool, which seems to have some kind of race condition problem in Mavericks where if the launcher exits quickly enough, the launched app isn't properly activated.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          marksibly
          wrote on last edited by
          #4

          AND, it looks like the process issue is something to do with current directory...

          Please ignore!

          1 Reply Last reply
          0
          • M Offline
            M Offline
            marksibly
            wrote on last edited by
            #5

            The current dir problem was this one:

            https://bugreports.qt-project.org/browse/QTBUG-34300

            ie: QDir::currentPath() is returning '/' on Mavericks. Easily enough worked around, but I do consider this a bug.

            The bug report page seems to suggest 'this is the way Finder now works' on Mavericks. However, apps built with xcode still appear to start with the app's 'Resources' dir as the current dir which suggests this isn't the case.

            1 Reply Last reply
            0
            • JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #6

              Hi,

              [quote author="marksibly" date="1384048475"]The bug report page seems to suggest 'this is the way Finder now works' on Mavericks. However, apps built with xcode still appear to start with the app's 'Resources' dir as the current dir which suggests this isn't the case.[/quote]You may want to bring this to the attention of Qt engineers in the "Development mailing list":http://lists.qt-project.org/mailman/listinfo/development. If Qt programs are behaving differently from Xcode-built programs, then it's probably something to fix.

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              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