Qt World Summit: Register Today!

Disable shift key in Virtual Keyboard

  • I've got an application that was built in QtWidgets that had its own custom built keyboard. Recently I was able to replace it with the Qt Virtual Keyboard (using QQuickWidget) and have it give input to various QLineEdit widgets. By default the keyboard will auto-press the shift key for the first character in any line edit. While this is desired for most cases, there are some QLineEdits which are password fields (echo mode was set Password). For this, I'd like to make sure that the shift key isn't auto-pressed for these fields. How can I achieve this?

Log in to reply