[Interest] DragDrop between different processes not working?
Wilhelm
wilhelm.meier at fh-kl.de
Wed Dec 17 08:57:02 CET 2014
Am 17.12.2014 um 08:48 schrieb Till Oliver Knoll:
>
>> Am 17.12.2014 um 08:29 schrieb Till Oliver Knoll <till.oliver.knoll at gmail.com>:
>>
>> ...
>>
>> It has nothing to do with "across processes" per se
>
> Giving that a second thought I am not so sure anymore whether that works "out of the box" (without further ado) with Qt. I'd expect it so for sure.
>
> Off course in order that drag and drop works "across processes" there is support from the underlying OS required: the data needs to be copied into a system buffer (the "clipboard" I remember) and the OS needs to inform the other process that the mouse is hovering over its window (with pressed mouse button state and that there is data to be accepted etc.).
>
> I cannot imagine that you need to explicitly tell Qt to "initiate the drag and drop over system/OS functionality (else over some Qt internal buffer which is only accessible by the current process)". I would not know about such API...
>
> But just to rule out the usual suspects: does drag and drop "in general" work with your current Window Manager" (in applications where you /know/ that certain MIME types are accepted)? E.g. when you drag and drop a file from your File Manager to your Email editor: does it get "attached" (or even embedded) (in)to your current email that you are typing?
Yes, absolutely.
E.g. I can drag from a foreign application (e.g. dolphin) to my programm
(into a derived QTextEdit to accept that drops).
So: it must be the dragging part, I think.
>
> Cheers,
> Oliver
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
--
Wilhelm
w.meier at unix.net
More information about the Interest
mailing list