[Interest] Drag-and-drop won't work with elevated privileges (Windows)

Jason H scorp1us at yahoo.com
Thu Aug 16 22:57:44 CEST 2012

I am going to go out on a limb here and say no. This is probably to prevent some kind of security hole in Windows. What happens if both the Qt app and the app supplying the dnd data are escalated?

 From: Bob Hood <bhood2 at comcast.net>
To: interest at qt-project.org 
Sent: Thursday, August 16, 2012 12:40 PM
Subject: [Interest] Drag-and-drop won't work with elevated privileges (Windows)
I hardly ever run into issues I cannot overcome with (and within) Qt, so I
don't often look for help here.  However, I'm not sure how to get past this one.

I have a stand-alone Qt application that accepts drag-and-drops of text files
to the main window.  It runs with the "Run as Administrator" flag set (yes, it
must run as Administrator because it installs and manages Windows Services). 
When run with Administrator privileges, it will not accept drag-and-drop
events.  If I turn that flag off, drag-and-drop works just fine.

Is there a way to get Qt's DnD to work with elevated privileges enabled?  UAC
prompted, and I authorized, so I would expect it to work as a normal application.

Interest mailing list
Interest at qt-project.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120816/e319cd36/attachment.html>

More information about the Interest mailing list