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

QML Tableview keys navigation



  • Hi There,
    In QML tableview need to navigate using Left and Right arrow keys. Did not see any straightforward methods to do it.

    Previous version do see the Key navigation enabled inside tableview. Would like to understand what is difference how to handle inside QML Tableview.

    Regards
    Elangovan



  • https://doc.qt.io/qt-5/qml-qtquick-keys.html

    I use these in my MouseAreas as I process other user inputs but as per the documentation, this could be
    Item {

    MouseArea {
    ...
    	Keys.onPressed: {
    		if (event.key === Qt.Key_Left) {
    ...
    	Keys.onEscapePressed: {
    		console.log("escapeItem is handling escape");
    

Log in to reply