In QDrag not work setDragCursor on Windows
Solved
General and Desktop
-
Hi!
In QDrag not work setDragCursor on Windows, but wirk on Ubuntu. The cursor remains unchanged.
How can I fix this?pixmap = QPixmap(imagePath) sizeImage = 15 pixmap2 = pixmap.scaled(sizeImage, sizeImage) drag.setDragCursor(pixmap2, QtCore.Qt.MoveAction) drag.setDragCursor(pixmap2, QtCore.Qt.IgnoreAction) dropAction = drag.exec()
-
From the documentation:
"Note: setting the drag cursor for IgnoreAction may not work on all platforms. X11 and macOS has been tested to work. Windows does not support it."