Details
-
Type:
Suggestion
-
Status: Closed
-
Priority:
P2: Important
-
Resolution: Done
-
Affects Version/s: 4.8.2, 5.2.0, 5.7.1
-
Fix Version/s: 5.11.0
-
Component/s: GUI: Drag and Drop
-
Commits:91aa782f0197034e0755f131e63fcec5bbf1e956
Description
The current implementation of the shown cursors during dragging is very strict.
It does not allow to change the appearance of the cursor during a ignore / not accept action.
A small patch on QDrag would solve this annoying issue:
void QDrag::setDragCursor(const QPixmap &cursor, Qt::DropAction action)
5.2.0/Src/qtbase/src/gui/kernel/qdrag.cpp line 326
if (action != Qt::CopyAction && action != Qt::MoveAction && action != Qt::LinkAction)
change to
5.2.0/Src/qtbase/src/gui/kernel/qdrag.cpp line 326
if (action != Qt::CopyAction && action != Qt::MoveAction && action != Qt::LinkAction && action != Qt::IgnoreAction)
Attachments
Issue Links
- duplicates
-
QTBUG-3347 QDrag: Be able to specify a custom pixmap for the IgnoreAction cursor
-
- Closed
-
- relates to
-
QTBUG-36173 QDrag allow change cursur while draging
-
- Reported
-
- replaces
-
QTBUG-35876 setDragCursor doesn't change cursor for Qt::IgnoreAction
-
- Closed
-