[Qt-qml] DropArea onDropped signal

Gatis Paeglis gatis.paeglis at nokia.com
Fri Dec 16 13:34:02 CET 2011


On 12/16/2011 12:35 AM, Den-Exter Andrew (Nokia-MP/Brisbane) wrote:
> Hi,
>
>> Today by an accident i discovered DropArea qml element and wanted to try
>> it out.. i couldn't find any example applications that uses onDropped signal
>> handler, but i would expect that it logs a message in my test application (
>> http://codepaster.europe.nokia.com/?id=48688 ). This is what i receive in
>> output:
>>
>> Is there anything missing in my code ? Thanks.
> Yes, a drop.  Changing the active property from true to false doesn't generate a drop, you'll need to do that yourself by calling the drop function on the Drag object.   Try adding the following to your MouseArea.
>
> onReleased: request.Drag.drop()
>
>
> Andrew
Thanks, it works great now.


More information about the Qt-qml mailing list