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

QtQuick application with macOS deployment target 10.14 shows no window content after start

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.12.1
    • 5.12.0 RC
    • None
    • macOS 10.14.0, 10.14.1 (mojave)
    • macOS

    Description

      Setting 10.14 as deployment target will make the initial window of a QtQuick application show no content.

      set(CMAKE_OSX_DEPLOYMENT_TARGET 10.14)
      or
      -mmacosx-version-min=10.14

      Steps to reproduce:

      • Create a new QtQuick application (Template empty) with QtCreator
      • Choose cmake
      • Modify the main.qml to show a label or something
      • Build & Run the project

      =>Empty Window! Resize window to "fix" this.

      Choosing cmake sets the deployment target to 10.14 per default (when building against 10.14 SDK). With qmake it's 10.11 so the problem does not show up directly.

      Workaround is to set a < 10.14 deployment target:

      # must go before project!
      set(CMAKE_OSX_DEPLOYMENT_TARGET "10.12" CACHE STRING "Minimum OS X deployment version")
      

       

      Attachments

        Issue Links

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

          Activity

            People

              vestbo Tor Arne Vestbø
              njeisecke Nils Jeisecke
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes