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. How to get a selected item from QListView delegated?
Forum Updated to NodeBB v4.3 + New Features

How to get a selected item from QListView delegated?

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

    Hi,

    i'm new to Qt. I have an empty table and a list of widgets (for example: a pushbutton, a radiobutton...). What I have to do is to select a widget from the list and insert it to a cell of the table.

    I'm thinking about drag and drop. So I want to get the selected item delegate and then use that delegate to insert the widget to the table's cell.

    Unfortunately i dont know how to do that. Can anybody help?

    Thank you guys a lot.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      That's not responsibility of the delegate. Use a custom mime type to provide the information needed and do the insertion at the drop point.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved