Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML Tableview keys navigation
Forum Updated to NodeBB v4.3 + New Features

QML Tableview keys navigation

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 720 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Elangovan
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • 6thC6 Offline
      6thC6 Offline
      6thC
      wrote on last edited by
      #2

      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");
      
      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved