Am 17.12.2014 um 08:29 schrieb Till Oliver Knoll:
> 
>> Am 17.12.2014 um 07:18 schrieb Wilhelm <wilhelm.me...@fh-kl.de>:
>>
>> Hi all,
>>
>> below is a stripped-down example for drag/drop. It follows the Qt
>> examples. It works if I drag from the ListView widget to another widget
>> (e.g. QTextEdit) of the same(!) process. But it doesn't work if I drag
>> to another(!) process - with the same programm or another, e.g. kate.
> 
> Hmmm, it's been a while since I looked into Qt drag and drop, but I AFAICR 
> you do have to explictly enable drop events - per (top level?) widget.

Well, this should apply to "dropping into same process" as well? But I
can drop into a widget of the same programm/process. But if I run two
instances of my test-programm, I can't drop into the other instance ...

> 
> It has nothing to do with "across processes" per se (as long as each process 
> a) accepts drop events and b) knows how to deal with them for each specific 
> case (MIME type)). In fact, drag and drop was probably invented with "across 
> processes" as its main purpose in mind.
> 
> Check the Qt docs with regards to "enable/accept drop events". My guess is 
> that your "second process" has drop events "not enabled". Or you are setting 
> a (wrong) MIME type in your first process when starting the drag, and e.g. 
> Kate does not know how to deal with it (and hence refuses the drop).

Really? I set an URL, that's the same what filemanagers do (text/plain,
text/uri-list, COMPOUND_TEXT).

> 
> Just some basic initial thoughts...

Thank you! But I think it must be something more obvious or very tricky!

> 
> Cheers,
>   Oliver
> _______________________________________________
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
> 


-- 
Wilhelm
w.me...@unix.net
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to