Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How do I change the icon when dragging from a model/view?



  • Hi All,

    I am using the model/view architecture which supports drag and drop but it does not appear to expose the QDrag object. The default drag 'cursor' obscures the valid drop areas. I would like to change the 'cursor' to make it a little less intrusive. How would I go about doing so?

    Thanks!
    -Harry



  • Hi Harry,

    I think for changing the cursor, you need to overwrite the view and the drag/drop events.
    Perhaps an eventfilter on the view (or on the application object) couild also be the trick.


Log in to reply