Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-111819

Unable to drag and drop files while running as administrator

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.13.2
    • None
    • Windows10
    • Windows

    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.

      Attachments

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            libxcc Menethil Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: