Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved make user able to edit qtreewidget

    Qt for Python
    3
    4
    130
    Loading More Posts
    • 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.
    • iwrwrc
      iwrwrc last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • iwrwrc
          iwrwrc last edited by

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

          JonB 1 Reply Last reply Reply Quote 0
          • JonB
            JonB @iwrwrc last edited by

            @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 Reply Quote 0
            • First post
              Last post