Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to set persistent item widget on tree item
Dariusz last edited by
If I do
treeview->setIndexWidget(item->index(),widget)and then perform drag&drop operation with the item, the dropped item will no longer have widget on it and wit will revert to its primal form. How can I retain the widget?
That is something that you have to implement yourself. Using setWidget as explained in the documentation is to be used to show static content.