Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.13.2
-
None
-
Windows10
Description
When I run the Qt program as an administrator, I cannot receive drag and drop operation events from the explorer.
Even though I added the following code:
ChangeWindowMessageFilter(WM_DROPFILES, MSGFLT_ALLOW);
ChangeWindowMessageFilter(WM_COPYDATA, MSGFLT_ALLOW);
ChangeWindowMessageFilter(0x0049, MSGFLT_ALLOW);
However, these operations work normally in Win32 native windows.
Windows provides this set of APIs so that windows can customize some messages to pass through.
What caused Qt to not receive the message, or to discard the message for some reason.
Even if I turn on QCoreApplication::setAttribute(Qt::AA_NativeWindows, true); and QWidget::setAttribute(Qt::WA_NativeWindows, true); It doesn't do anything either.