10 June 2022
def handleVisibleChanged():
if not QApplication.inputMethod().isVisible():
return
for w in QApplication.allWindows():
if w.metaObject().className() == "QtVirtualKeyboard::InputView":
keyboard = w.findChild(QObject, "keyboard")
if keyboard is not None:
r = w.geometry()
r.setTop(SCREEN_RESOLUTION_Y / 2)
w.setMask(QRegion(r))
return