Hi,

I've start to develop my application with QT-4.2 and QSA-1.2.2. QSA was always problematic to install. So I start a second port to use QtScript as interpreter. The most of porting wasn't a problem, but my OpenGL wrapper requires many constants. On QSA it was enough to collect them as Q_ENUM, but on QtScript that work only for prototype objects. Unfortunately wrapped.

I have to possibilities to wrap a object to QtScript:

That creates a prototype object with working enums but nonworking functions:
Qt Code:
  1. Q_SCRIPT_DECLARE_QMETAOBJECT(glwrapper, QObject*);
  2. somefunction(){
  3. ip->globalObject().setProperty("glproto" ,ip->scriptValueFromQMetaObject<glwrapper>());
  4. }
To copy to clipboard, switch view to plain text mode 
or an wrapped object without working enums:
Qt Code:
  1. ip->globalObject().setProperty("gl" , ip->newQObject(ogl));
To copy to clipboard, switch view to plain text mode 

The support says it feature. I say that is a bug... (or design error?)

My project homepage:
http://lumina.sourceforge.net/