Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Treeview + edit item (and drag and drop)
QtWS25 Last Chance

Treeview + edit item (and drag and drop)

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 472 Views
  • 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.
  • JanWJ Offline
    JanWJ Offline
    JanW
    wrote on last edited by
    #1

    Hi,

    I'm trying to implement a tree where i can edit the label of each item. I started from the example in the Qt dir (editabletreemodel) and converted it to Qml. I've added the roleNames and the tree is showing just fine (expanding, collapsing, selection all works fine). Though, when I double click on the item, i cannot edit it (basically, nothing is happening). Should I do something special for enabling the editing of items? (The same for drag and drop: when i add the flag Qt::ItemIsDragEnabled and Qt::ItemIsDropEnabled, nothing happens when I start dragging an item). Anybody who can point me in the right direction?
    Regards,

    Jan

    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