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. catching keypressevent in void QTreeWidget::editItems();

catching keypressevent in void QTreeWidget::editItems();

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtreewidget
2 Posts 2 Posters 1.0k 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.
  • L Offline
    L Offline
    Lorence
    wrote on 31 Dec 2015, 11:15 last edited by Lorence
    #1

    is there a way to catch what is being type here?

    void MyTreeWidget::keyPressEvent(QKeyEvent *event)
    {
        qDebug() << "test";
    }
    

    this one doesnt work

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 31 Dec 2015, 11:36 last edited by mrjj
      #2

      Hi
      You can try with eventfilter on the QTreeWidget.

      1 Reply Last reply
      1

      2/2

      31 Dec 2015, 11:36

      • Login

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