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. Create a sibling of a row in QtreeView
Forum Updated to NodeBB v4.3 + New Features

Create a sibling of a row in QtreeView

Scheduled Pinned Locked Moved Unsolved Qt for Python
1 Posts 2 Posters 569 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

    I have a QTreeView
    I have a QtreeView a

    1. I want to get current selected row

    the following line is not giving to current selected row

     index = self.selectionModel().currentIndex(). 
    

    And
    Also I was looking for sample code how to add a new row , to create sibling of a new row.

    Regards,

    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