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. TableView drag and drop rows
Forum Updated to NodeBB v4.3 + New Features

TableView drag and drop rows

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 944 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.
  • Z Offline
    Z Offline
    ZergedU
    wrote on last edited by
    #1

    Hey all,

    I've been trying to figure out a way to reposition rows in a Qt Quick TableView by using drag and drop. I've been following the examples here for drag and drop with a ListView, but it's not quite what I'm looking for. I've been able to drag individual column items and a row background, but I haven't figured out a way to drag the entire contents of a row (background plus all column items) for re-ordering. Does anyone have any suggestions?

    1 Reply Last reply
    0
    • m.sueM Offline
      m.sueM Offline
      m.sue
      wrote on last edited by
      #2

      Hi,
      did you activate selection of complete rows? Maybe then it works automatically.
      Otherwise you will have to move the other items of a row yourself i.e. write code that does that based on the one item that gets moved by the mouse.
      -Michael.

      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