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