Hi everyone !
I’ve been working with a QTreeWidget for a article editor application. The QTreeWidget shows all opened articles in a tree where articles can be children of others. What I want to do is to dynamically set the parent-child relationship by dragging and dropping articles in the tree view to others.
I tried to reimplement dropEvent on thre treewidget but it doesn’t work with QTreeWidgetItems wich doesn’t seem to inherit QWidget.
I also tried to connect the QTreeWidget::itemChanged() signal to a custom slot but it doesn’t seem to be emited on drag and drop operations.
How should I handle such an event ?
Thanks in advance !
↧