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

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

    XMLWordPrintable

Details

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

    Description

      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
      

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes