msg2 = QtDBus.QDBusMessage.createMethodCall('org.onboard.Onboard',
    '/org/onboard/Onboard/Keyboard',
    'org.onboard.Onboard.Keyboardorg.onboard.Onboard.Keyboard.Hide')
QtDBus.QDBusConnection.sessionBus().send(msg2)
How to make a QInputDialog trigger the virtual keyboard to show up?