Priority: P2: Important
Affects Version/s: 5.12
Fix Version/s: None
Component/s: GUI: Drag and Drop
On macOS drag action to file manager (Desktop or Finder) does not switch between copy and move via Command key. It used to work in Qt4 and stopped working in Qt5.
1. Clone draggabletext example and add two lines to set mime urls:
2. Build and run the app.
3. Drag any file (file path should not contain whitespace) from Finder to the main window. A new file:///path/to/file.txt label will appear.
4. Create a new directory in Finder.
5. Drag file:///path/to/file.txt label to that new directory but do not release the mouse. Try holding/releasing Command key on the keyboard.
Mouse cursor should change between normal pointer and pointer with a green circle with a plus sign. Accordingly, when mouse released, the file should be moved or copied to the new location.
Mouse cursor does not change. File is always moved.
Same code works on Linux as expected. I can switch between copy and move action by holding a Ctrl key.
|For Gerrit Dashboard: QTBUG-99471|
|388645,2||qnsview_drag: only ignore key modifier while dragging 'within the application'||dev||qt/qtbase||Status: NEW||0||0|