Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. make user able to edit qtreewidget
Forum Updated to NodeBB v4.3 + New Features

make user able to edit qtreewidget

Scheduled Pinned Locked Moved Unsolved Qt for Python
4 Posts 3 Posters 409 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.
  • iwrwrcI Offline
    iwrwrcI Offline
    iwrwrc
    wrote on last edited by
    #1

    I know how to create childs, parents, columns in qtreewidget, and make also items changeable through user input,
    However, I want to make it possible for a user to add new childs in the treewidget through the interface.

    Any idea if Qt has something built in for this matter?
    Thank you so much.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Do you mean something like a contextual menu with an "insert here" action ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • iwrwrcI Offline
        iwrwrcI Offline
        iwrwrc
        wrote on last edited by
        #3

        Yes, so basically it's like creating a tree widget from scratch but the user who will do it in interface

        JonBJ 1 Reply Last reply
        0
        • iwrwrcI iwrwrc

          Yes, so basically it's like creating a tree widget from scratch but the user who will do it in interface

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @iwrwrc
          So --- as far as I know there is nothing supplied for this --- you have to do the code yourself. You could, for example, have an Add button, or as @SGaist wrote probably best if you do it via right-click context menus on nodes/leaves to insert/edit/delete.

          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