0

In some cases, we need to move QWidget outside the screen coordinate (move it with negative pos), for example here we need to move our main widget offscreen for the user to see what he/she is typing via virtual keyboard but this behavior is not working under X11 platform(tested under ubuntu 18.04).

  • Is it related to window manager or Qt?
  • What is the solution for this?
IMAN4K
  • 1,265
  • 3
  • 24
  • 42
  • Why not just `hide()` the widget rather than move it "off screen"? – Jesper Juhl Aug 22 '19 at 16:02
  • @JesperJuhl. We show Qt virtual keyboard when user click on input and we need to move the main window off screen to see what we're typing in the input widget, so we can't hide the main window(behavior: https://i.stack.imgur.com/xgXCH.gif) – IMAN4K Aug 22 '19 at 16:07
  • @JesperJuhl. BTW, I just want exactly the `ALT + Left Button` behavior for window moving – IMAN4K Aug 22 '19 at 16:23

0 Answers0