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

QtQuick apps do not fill/paint the whole screen of an iPhone X

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.9.2, 5.10.0
    • Fix Version/s: 5.9.4, 5.10.1, 5.11.0
    • Environment:
    • Platform/s:
      iOS/tvOS/watchOS

      Description

      With the new hardware of Apple released, I started to port older software.

       The issue:

      The ported application will not fill the whole display, even so no size constrains are applied.

      As a note. The issue that the app does not full the whole display only appears when the iPhone is in portrait mode. In landscape mode the app does fill the whole screen.

      For reproducibility I used the "calculator-qml" example that comes with QtCreator: Can be found here.

      Intitial changes: removal of 'width:320' and 'height: 480' of the windows-item to force fullscreen.

      The App goes up to the top and wraps around the notch, this is expected. Apple advices developers to fix this with new margins. However the app does not reach the bottom where the home indicator is, this area remains black. The App appears to not stretch all the way down there.

      Changing the QtQuick.Window import from 2.0 to any higher version, 2.1 or 2.2 or 2.3, results in a different behavior.

      The App does now stretch all the way down the the edge of the display, but it no longer stretches to the top of the display. The notch and a few milimeters below remains black and unaccessable.

      This is also the behavoir, when I tried a QWidget Application this one from the official examples

      Removing Window-Item and replacing the root-item with a simple Rectangle results in a completly black application.

       

      No issues or warnings during compiling.

      Noticable feedback from the QtCreator console:

      QML debugging is enabled. Only use this in a safe environment

      Jit is disabled for QML. Property bindings and animations will be very slow.

      stale focus object(0x0), doing manual update

       

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              vestbo Tor Arne Vestbø
              Reporter:
              jhilk Jonas Hilk
              Votes:
              10 Vote for this issue
              Watchers:
              25 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes