Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. Pyside - Moving data between two list views
Forum Updated to NodeBB v4.3 + New Features

Pyside - Moving data between two list views

Scheduled Pinned Locked Moved Language Bindings
1 Posts 1 Posters 1.4k 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.
  • 6 Offline
    6 Offline
    6b656d70
    wrote on last edited by
    #1

    I am not sure that this is a Pyside/Python specific question or a more general Qt question. I am not expecting working code so much as a brief explanation of the preffered method of implementation in Qt.

    I wish to have two list views (either model-view or widget based) side by side. I want to populate the first list with a set of data and then allow the user to:

    • drag items from the left-hand list to the right, removing from the left-hand list and adding to the right.
    • drag items from right-hand list to the left, removing from the right and adding to the left.
    • re-order items in either list without duplicating them.

    I believe I can implement this functionality 'manually' by modifying the drag and drop events to modify the contents of the list. But I wondered if there was a better way to acheive this using more standard functionality, or if another widget would be able to acheive this already.

    I could get some way to enabling this by enabling the drag and drop handling events for both lists. However I would quickly end up with duplicates in the lists.

    I hope I have explained this suitably and I appologise in advance if I have missed a similar existing topic - I was having trouble finding a search term that accurately described what I was trying to acheive.

    Kind Regards
    Stephen

    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