I think you are right.

My other QT widgets happily accept any type I made up:
text/cam
text/geo
etc...

I tried other common ones
text/html
image/*

It looks like the object dropped in the DAG doesn't get passed to the dropData method unless text/plain.

cheers


On 16/11/11 21:02, Ivan Busquets wrote:
I don't think it can.

My guess is the DAG's Qt Widget itself doesn't accept drops from anything other than 'text/plain' types. Or it's probably trying to convert any type to 'text/plain', and refuse the drop if it can't convert it.

If that's the case, then you won't be able to override that within the dropData function (since that wouldn't even be called if the Widget doesn't accept the drop).

Just my guess, though.

Cheers,
Ivan

P.S. Out of interest, what type of data are you trying to drop?

On Tue, Nov 15, 2011 at 9:23 PM, Johan Aberg <[email protected]> wrote:

Can the DAG accept drops from mime data other than 'text/plain'?

I haven't been able to get the DAG to accept other types.

I tried to reimplement:
nukescripts.dropData

and add a new callback using:

nukescripts.drop.addDropDataCallback()

thanks


_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python



_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to