Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QML: Why my buttons at the bottom are under the lower Android button bar, before creen rotation
Forum Updated to NodeBB v4.3 + New Features

QML: Why my buttons at the bottom are under the lower Android button bar, before creen rotation

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 341 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.
  • J Offline
    J Offline
    Jacques L.
    wrote on last edited by Jacques L.
    #1

    In the code below, the row of buttons shows behing the Android lower bar of button (triangle, circle, square). When I rotate, everything is fine. When I rotate back, everything is fine too.

    So it is only the first time that something goes wrong.

    Any idea ?

    import QtQuick 2.4
    import QtQuick.Controls 2.15
    import QtQuick.Window 2.15
    
    Item {
        property alias unit_add: unit_add
    
        width: Screen.desktopAvailableWidth
        height: Screen.desktopAvailableHeight
    
        ListView {
           (...)
        }
    
        Row {
            id: buttons
            width: parent.width
            height: 43
            visible: true
            spacing: 16
            anchors.bottom: parent.bottom
            anchors.topMargin: 10
            anchors.bottomMargin: 10
            anchors.horizontalCenter: parent.horizontalCenter
    
            Button {
                id: unit_add
                text: qsTr("Add")
            }
    
            Button {
                id: unit_delete
                text: qsTr("Delete")
            }
    
            Button {
                id: unit_edit
                text: qsTr("Edit")
            }
        }
    }
    
    1 Reply Last reply
    0
    • P Offline
      P Offline
      Padlock
      wrote on last edited by
      #2

      I remember I had a similar issue on Android a few years ago. I switched to Screen.width and Screen.height.

      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