Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.7.0
-
windows 7, macOS, X11
Description
related to QTBUG-26413.
It looks to me that this is not just an OSX bug.
Under windows this code does not seem to work either:
struct TestWidget : public QWidget { virtual void dragEnterEvent(QDragEnterEvent* e) { e->accept(); } virtual void dragMoveEvent(QDragMoveEvent* e) { qDebug() << "active keyboard modifiers" << QApplication::queryKeyboardModifiers() << e->keyboardModifiers(); } }; int main(int argc, char** argv) { QApplication app(argc, argv); TestWidget* tw = new TestWidget; tw->setAcceptDrops(true); tw->resize(300,300); tw->show(); return app.exec(); }
Instructions:
- build and run application
- drag a file from explorer into the application window
- while dragging hold down a keyboard modifier (alt, shift or control).
- qDebug() output does not show the modifier pressed
Attachments
Issue Links
- relates to
-
QTBUG-56244 QDropEvent::mouseButtons() on Windows inconsistent with Linux / macOS
- Open
For Gerrit Dashboard: QTBUG-57168 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
194697,22 | qpa: improve API to support DnDs from other processes | dev | qt/qtbase | Status: MERGED | -2 | 0 |
214343,5 | Windows QPA: Use new QPA Dnd API | dev | qt/qtbase | Status: MERGED | +2 | 0 |
227176,1 | WIP: qpa: improve API to support DnDs from other processes... | 5.11 | qt/qtbase | Status: ABANDONED | -2 | 0 |
227358,1 | Windows QPA: Use new QPA Dnd API | dev | qt/qtbase | Status: ABANDONED | 0 | 0 |
227805,12 | macOS: Transition to new QPA dag-and-drop API | dev | qt/qtbase | Status: MERGED | +2 | 0 |