QT virtualkeyboard size
-
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
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
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
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 -
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.
-
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.
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.