Custom cursor does not change on Mac

  • Hi All I am having little trouble dont know if I am doing something wrong or if it is bug. I am doing setDragCursor() with my own custom pixmap and setting this in startDrag but it is not changing the cursor when drag starts.

    I am dong this on Windows and Mac.

    Can any one please help

  • I know this is Bug, I have seen this before.
    Look at this patch this should fix the issue on Windows, I will see if I can find something for Mac

    diff --git a/src/gui/kernel/qdnd_win.cpp b/src/gui/kernel/qdnd_win.cpp
    index 073937f..7054a3f 100644
    --- src/gui/kernel/qdnd_win.cpp
    +++ src/gui/kernel/qdnd_win.cpp
    @@ -560,6 +560,7 @@ QOleDropSource::GiveFeedback(DWORD dwEffect)

    • createCursors();
      if (cursors.contains(currentAction)) {
      #ifndef QT_NO_CURSOR

    Hope this helps,


    Irfan Omair

    [EDIT: fixed code formatting, Volker]

  • Hi again, sorry I tried to find something for Mac but no success yet. I will post you again if I find something.

    Irfan Omair

  • Thank you Irfan Omair for the patch you posted, this does help me on windows but still no clue how to do it on Mac.

    I appreciate your help for looking this for me on mac

  • Irfan Omair : did you find something to help me on Mac? sorry to bother you but honestly speaking I could not figure out how to do it on Mac/Cocoa

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.