Unsolved How to get a selected item from QListView delegated?
-
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.
-
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.