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. QTablewidget - press tabkey
QtWS25 Last Chance

QTablewidget - press tabkey

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 742 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.
  • P Offline
    P Offline
    poucz
    wrote on last edited by
    #1

    Hi,
    I want allow user to write tab-key (0x09) in qtablewidgetitem, but when user press tab button on qtablewidget, it change focus or change selection in item.
    So I try catch key signal ( through event filter) -no working, so I try change some flags in QAbstractItemView but without solution.

    Can you help me?
    Thank

    D 1 Reply Last reply
    0
    • P poucz

      Hi,
      I want allow user to write tab-key (0x09) in qtablewidgetitem, but when user press tab button on qtablewidget, it change focus or change selection in item.
      So I try catch key signal ( through event filter) -no working, so I try change some flags in QAbstractItemView but without solution.

      Can you help me?
      Thank

      D Offline
      D Offline
      doshirushabh
      wrote on last edited by
      #2

      @poucz
      Hello.
      I am not sure if this helps but just a perspective. (If you can write your pusedocode maybe i can try to give any insight). The

      I had some issues with QtableWidget not getting focus for deletion on keyPressEvent. But then i realized that i had few layers about that like one shown below. There were some reasons i had to do it this way which i am not stating

      QTabWidget -> QWidget -> (layout)->QWidget -> QTableWidget

      But then i removed one more intermediate QWidget then keyPressEvent() worked fine on QTableWidget,

      Not sure if it helps by any means :-(

      1 Reply Last reply
      0
      • P Offline
        P Offline
        poucz
        wrote on last edited by
        #3

        Thank, but I have still same problem,
        when I'm editing cell (QTablewidgetitem) event filter not catch any key.

        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