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

Android: QInputMethod.keyboardRectangle not scaled in high-DPI auto scaling

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.6.0 Beta
    • None
    • Android 4.4
    • Android

      Either I use Qt::AA_EnableHighDpiScaling or not, keyboardRectangle is the same. On my Android phone in portrait mode it is QRectF(0, 706, 720, 524). devicePixelRatio for my phone screen is 2. The cursorRectangle seems updated properly.

      Workaround is to divide by devicePixelRatio, for example in QML:

      Qt.inputMethod.keyboardRectangle.height / Screen.devicePixelRatio
      

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

            tvete Paul Olav Tvete
            krnekit Nikita Krupenko
            Votes:
            14 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes