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

Unable to drag and drop files while running as administrator

XMLWordPrintable

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

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:

                There are no open Gerrit changes