Dear Qt,
Im attempting to port from a snapshot (4.4.0-snapshot-20071010) to the beta
version of 4.4. Part of my code is to create a QScriptValue that wraps a
native (c++) function, the code im using to do this is shown bellow
engine_->globalObject().setProperty("ReadFile",engine_->newFunction(ScriptFu
nctionLibrary::ReadFile),
QScriptValue::PropertyGetter |
QScriptValue::PropertySetter);
This works fine using the snapshot but not using the beta release, instead I
get the error
uncaught exception: TypeError: ReadFile is not a function
4 values = ReadFile(fileName);
Your help is appreciated.
Regards,
Ben Shaw
To unsubscribe - send "unsubscribe" in the subject to [EMAIL PROTECTED]