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. How to add sibling to any selected node
Forum Updated to NodeBB v4.3 + New Features

How to add sibling to any selected node

Scheduled Pinned Locked Moved Unsolved Qt for Python
3 Posts 2 Posters 390 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.
  • Q Offline
    Q Offline
    Qt Enthusiast
    wrote on last edited by
    #1

    https://paste.ofcode.org/AruS2xQqNNLdadxtajnZEB

    I am looking to add a sibling node to a selected node.

    Can some help me with a logic how to add Sibling Node

    The tree ins coming as

    https://paste.ofcode.org/36i5953LNNa28A6VuV5kr5m

    D
    C
    B
    A

    I want to insert E after B and the python function to add the function is addSibling

    Can some one help me with the logic

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      Qt Enthusiast
      wrote on last edited by
      #2

      I am using pyqt4

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        Qt Enthusiast
        wrote on last edited by
        #3

        @Denni-0 said in How to add sibling to any selected node:

        Further PyQt5 and Python3 are not backwards compatible with PyQt4 nor Python2 so not only can you expect issues going forward but it is only going to get worse and not better -- sorry to say you should convert this all to Python3 and PyQt5 going forward

        Can we sync up for the soltion if you can guide me in Qt also that will be fine , how to add a sibling node

        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