Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Capslock off on virtual keyboard for specific input ?



  • Hi,

    I am searching for a way to show a virtual keyboard with lower case letters.
    Currently when the keyboard shows, it is set with the shift key active and capital letters.

    Is there a way to change this default behaviour for a specific input field ?



  • Found it on stackoverflow, sharing it here so it can help others.

    There is a property on Textfield called inputMethodHints that can change the default behaviour of the virtual keyboard.

    For example :

    inputMethodHints: Qt.ImhNoAutoUppercase | Qt.ImhPreferLowercase | Qt.ImhSensitiveData | Qt.ImhNoPredictiveText
    

Log in to reply