That does indeed prevent a crash. I thought I had solved it by moving the update() call that was coming from a successful drop on the target side to just after [QDrag]->exec() on the source side (using the drop target from QDrag info).
Now you've made me think about what's happening here more carefully. Does that mean that the QIcon keeps hold of the QPixmap? If I do create it on the heap, who's reponsible for deleting it? Apologies if this seems like a daft question...




Reply With Quote


Bookmarks