You'll get a QScriptValue back which will be a function object (in the
QtScript sense). Then it has this call thing which takes an argument
list as a single QScriptValue. I've never done that bit but if I had
to guess I'd say you create a QtScript list object, which you can
presumably do either via the engine object or from some QScriptValue
constructor. Then you put your arguments as elements in the list and
pass it off to that call function.

Does that make any sense? :)

Adam

2008/12/14 Sean M. Pappalardo <[email protected]>:
>
>
> Adam Davison wrote:
>> Then the second stage is the dispatch. Here you have some function
>> name and your QScriptEngine, you use
>> QScriptEngine.globalObject().property(functionname) to get an object
>> representing the function and then you .call(...) on that with the
>> arguments you want to send.
>
> What type will that object be? QObject? QScriptValue?
>
> Then how do I pass a pack of arguments to a QtScript function in one msg
> parameter? Am I stuck with multiple args or can I pass some sort of struct?
>
> Sean
>
> <<--------------------------------------------------------------------------------->>
> This E-Mail message has been scanned for viruses
> and cleared by >>SmartMail<< from Smarter Technology, Inc.
> <<--------------------------------------------------------------------------------->>
>

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Mixxx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mixxx-devel

Reply via email to