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

Android False Bottom

    XMLWordPrintable

Details

    • Android
    • Need to set correct Window property

    Description

      Sample QML:

      import QtQuick 2.4
      import QtQuick.Window 2.2
      import QtQuick.Controls 1.3
      import QtQuick.Layouts 1.1

      Window
      {
      visible: true
      width: Screen.width
      height: Screen.height
      color: "gray"

      Rectangle

      { height: 44 anchors.left: parent.left anchors.right: parent.right anchors.bottom: parent.bottom clip: true visible: true color: "white" borders.width:2 borders.color: "black" }

      }

      Randomly, after Android tablet/smartphone device orientation rotation, Screen.bottom will report a greater value than at other times. Thus, the rectangle that should be anchored to the bottom appears clipped. Rotating device between landscape and portrait some times jiggles it loose and the screen rotation reports OK.

      Likely workaround is to QQmlApplicationEngine::Load/LoadData with a new root object upon screen rotation.

      False Bottom bug does not ever happen on Galaxy Tablet Pro 8.4 with 4.4.2. Nor IOS.

      Attachments

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

        Activity

          People

            aalpert Alan Alpert
            md@rpzdesign.com md
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes