Hi again.

Adam Davison wrote:
> 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.

call looks like this:
QScriptValue QScriptValue::call ( const QScriptValue & thisObject =
QScriptValue(), const QScriptValueList & args = QScriptValueList() )

Two questions:
1) What do I use for thisObject? (I'm trying to call the script function
from midiobject.cpp for context.)
2) How do I make a QScriptValueList? It's not documented.

> Does that make any sense? :)

Yes, but I need code examples. Trial and error takes a looong time. All
the ones I've found so far assume a UI.

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