Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Escape key on a QTableView
Forum Updated to NodeBB v4.3 + New Features

Escape key on a QTableView

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.2k Views 1 Watching
  • 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.
  • O Offline
    O Offline
    Octani
    wrote on last edited by
    #1

    Hello, I have a problem concerning the action of the escape key on my QTableView.

    Actually, I would like when the user presses the escape key on a cell which have a opened editor, it close it directly. The problem is the event is over all sent to the editor. So we have to press the escape key twice.

    How can I fix this problem please?

    1 Reply Last reply
    0
    • P Offline
      P Offline
      pritamghanghas
      wrote on last edited by
      #2

      isntall an eventfilter on the editor and handle the key before it is delivered to the editor.

      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