Reimplementing keyPressEvent for TextInput?



  • Hi, is there a way to reimplement key press signal for TextInput in QML just like C++ keyPressEvent(QKeyEvent *event) for QLineEdit?

    I tried Keys.onPressed but no matter what I do it still inserted key at the end.

    Thanks in advance for help.



  • You can always create your own widget and export it to QML.... I don't think it is possible to reimplement functions on existing QML-Widgets etc...


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.