Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QT virtualkeyboard size
Qt 6.11 is out! See what's new in the release blog

QT virtualkeyboard size

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 976 Views
  • 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hello everyone!

    I'm fighting with keyboard size. I would like to get the right keyboard position based on size.

    // variant 1
    InputPanel {
       x:1
       y:1
       height: 100
       width: 100
    

    variant1.png Keyboard is exactly on the position where it has to be 1x1[px] from 0x0.

    // variant 2
    InputPanel {
       x:1
       y:1
       height: 100
       width: 200
    

    variant2.png Now the keyboard has width set to 200 and suddenly both of coordinates are not matching. Which is little bit strange to me.

    // variant 3
    InputPanel {
       x:1
       y:51 //<--- why there is an needed offset?
       height: 100
       width: 200
    

    variant3.png

    Last measurement show, that if I set height to the same value as width, 1x1[px] offset is ok. So what's the ratio between width and height?
    The main reason why I'm asking about keyboard coordinates is that, I would like to set the max keyboard with/height in landscape/portrait mode. I need to know the XY due to keyboard rotation.

    Regards,
    Andy

    1 Reply Last reply
    0
    • IntruderExcluderI Offline
      IntruderExcluderI Offline
      IntruderExcluder
      wrote on last edited by
      #2

      According to docs the application should only set the width and y coordinates of the InputPanel, and not the height. Probably you doing something wrong.

      ? 1 Reply Last reply
      0
      • IntruderExcluderI IntruderExcluder

        According to docs the application should only set the width and y coordinates of the InputPanel, and not the height. Probably you doing something wrong.

        ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        Yes, I tried to set only with according to documentation. It works in landscape mode. But if I rotate the keyboard and set width only, it is working like I described.

        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