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. How to detect a click/doubleclick on a QTreeWidget[solved]

How to detect a click/doubleclick on a QTreeWidget[solved]

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 15.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.
  • K Offline
    K Offline
    karim24
    wrote on last edited by
    #1

    hi,i'm wondering about how to detect a click or a double click and datachanged on a QTreeWidget
    the QTreeWidget has toplevelitems and childs,i check the docs and there was no signals
    of any kind

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      How about "double click":http://qt-project.org/doc/qt-5.0/qtwidgets/qtreewidget.html#itemDoubleClicked and "single click":http://qt-project.org/doc/qt-5.0/qtwidgets/qtreewidget.html#itemClicked signals and there is also "item changed":http://qt-project.org/doc/qt-5.0/qtwidgets/qtreewidget.html#itemChanged signal

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • K Offline
        K Offline
        karim24
        wrote on last edited by
        #3

        yes, they are in the docs,
        i checked a lots of times and i just have no idea how i missed them

        1 Reply Last reply
        0
        • K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          With an overwhelming list of different methods, signals and other stuff, this happens sometimes :)

          If this solves your problem, please mark the thread with [solved] in the title

          Vote the answer(s) that helped you to solve your issue(s)

          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