Hi Orphelic,

I had a similar problem.

I have patched MOC to generate meta-call-info for all public functions (not just slots as it is today), so I can call them from qscript, and I have set up some constructors for the classes I need to construct from qscript.

The problem arised when I tried to call the function
Qt Code:
  1. QDrag::exec( Qt::DropActions supportedActions = Qt::MoveAction)
To copy to clipboard, switch view to plain text mode 
from QScript.

As it turns out, the Qt::enums are not made available to the script engine. Digging a bit further, i found out that the fix was simply calling
Qt Code:
  1. qRegisterMetaType<Qt::DropAction>("Qt::DropAction");
To copy to clipboard, switch view to plain text mode 
first, so that Qt::DropAction was made known to the meta type system, and thus also to the script engine.

Hope this helps out,

Best regards
orz