Re: [Development] why is QJSEngine not modifying metaObject

2015-02-11 Thread Rees, Kevron
On Wed, Feb 11, 2015 at 1:12 PM, Matt Broadstone wrote: > On Wed, Feb 11, 2015 at 4:00 PM, Thiago Macieira > wrote: >> >> On Wednesday 11 February 2015 18:50:42 Hausmann Simon wrote: >> > Hi, >> > >> > The brute force way is to add this feature to the engine at the expense >> > of >> > performanc

Re: [Development] why is QJSEngine not modifying metaObject

2015-02-11 Thread Matt Broadstone
On Wed, Feb 11, 2015 at 4:00 PM, Thiago Macieira wrote: > On Wednesday 11 February 2015 18:50:42 Hausmann Simon wrote: > > Hi, > > > > The brute force way is to add this feature to the engine at the expense > of > > performance, memory consumption and maintenance :) > > > > Today you can invoke J

Re: [Development] why is QJSEngine not modifying metaObject

2015-02-11 Thread Thiago Macieira
On Wednesday 11 February 2015 18:50:42 Hausmann Simon wrote: > Hi, > > The brute force way is to add this feature to the engine at the expense of > performance, memory consumption and maintenance :) > > Today you can invoke Javascript defined functions by simply getting the > function as a proper

Re: [Development] why is QJSEngine not modifying metaObject

2015-02-11 Thread Rees, Kevron
Original Message > From: Rees, Kevron > Sent: Wednesday, February 11, 2015 17:18 > To: Hausmann Simon > Cc: Thiago Macieira; development@qt-project.org > Subject: Re: [Development] why is QJSEngine not modifying metaObject > > > On Wed, Feb 11, 2015 at 12:03 AM, Hausmann Simo

Re: [Development] why is QJSEngine not modifying metaObject

2015-02-11 Thread Hausmann Simon
, Kevron Sent: Wednesday, February 11, 2015 17:18 To: Hausmann Simon Cc: Thiago Macieira; development@qt-project.org Subject: Re: [Development] why is QJSEngine not modifying metaObject On Wed, Feb 11, 2015 at 12:03 AM, Hausmann Simon wrote: > Hi, > > Kind of :) It works on a type level.

Re: [Development] why is QJSEngine not modifying metaObject

2015-02-11 Thread Rees, Kevron
To: development@qt-project.org > Subject: Re: [Development] why is QJSEngine not modifying metaObject > > > On Wednesday 11 February 2015 07:11:26 Hausmann Simon wrote: >> Hi, >> >> The short answer to your question is that the meta object system isn't >> rea

Re: [Development] why is QJSEngine not modifying metaObject

2015-02-11 Thread Hausmann Simon
5 08:35 To: development@qt-project.org Subject: Re: [Development] why is QJSEngine not modifying metaObject On Wednesday 11 February 2015 07:11:26 Hausmann Simon wrote: > Hi, > > The short answer to your question is that the meta object system isn't > really designed for th

Re: [Development] why is QJSEngine not modifying metaObject

2015-02-10 Thread Thiago Macieira
On Wednesday 11 February 2015 07:11:26 Hausmann Simon wrote: > Hi, > > The short answer to your question is that the meta object system isn't > really designed for this. In theory this could be implemented but it would > come at a high cost for something that rarely happens. The qml engine > suppo

Re: [Development] why is QJSEngine not modifying metaObject

2015-02-10 Thread Hausmann Simon
fully dynamic. Simon Original Message From: Rees, Kevron Sent: Wednesday, February 11, 2015 00:52 To: development@qt-project.org Subject: [Development] why is QJSEngine not modifying metaObject test: class Test : public QObject { Q_OBJECT public slots: QObject* createQObject() { retur

[Development] why is QJSEngine not modifying metaObject

2015-02-10 Thread Rees, Kevron
test: class Test : public QObject { Q_OBJECT public slots: QObject* createQObject() { return new QObject(); } void checkQObjectMetaObject(QObject* obj) { for(int i=0; i < object->metaObject()->methodCount(); i++) { qDebug() << "introspecting: " << object->metaObject()->method(i