[Qt-qml] interfaces for QML Python Bindings
Kristian Mueller
kristian at mixd.tv
Mon Oct 4 17:55:38 CEST 2010
Hi Aaron,
Am Freitag, den 01.10.2010, 05:51 +0000 schrieb aaron.kennedy at nokia.com:
> On 24/09/2010, at 3:19 AM, ext Kristian Mueller wrote:
> > we've been developing a Python <-> QML interface. It's already working
> > fine for us and we plan to release it soon.
> > First we need access to the QDeclarativeEngines QScriptEngine. [..]
> > Second, we need access to the QDeclarativeOpenMetaObject to build a
> > dynamic ProxyObject, which represents Python objects in QML.
> >
> > Our current solution is to add a proxy-object implementation and a
> > header-file (files are attached) to the declarative source and build our
> > "own" version off Qt-Declarative. Of course, we would be very happy if
> > we could skip this workaround. Is there any chance that:
> > 1. QDeclarativeEngine allows access to its QScriptEngine
> > 2. QDeclarativeOpenMetaObject will become part of the Public API
> > in the near future?
>
> Both of these APIs are internal because there are still some
> outstanding issues we have to resolve. If we just exposed the
> QScriptEngine directly it is currently way too easy for people to
> shoot themselves in the foot. We hope to resolve these problems and
> expose the QScriptEngine in the future - in my estimation we'll do
> this by 4.8 at the latest.
Okay, for the QScriptEngine we are now going with the private header
(used by the QtCreator) - as Artur suggested.
> QDeclarativeOpenMetaObject has a horrible API. We would like to clean
> it up and expose that functionality, too. I'm not sure of your exact
> requirements, but could QDeclarativePropertyMap be used to accomplish
> what you want?x
Unfortunately the QDeclarativePropertyMap can not be used for the task,
as we are proxying real python objects to QML (e.g. resolving objects as
attributes of objects when they are requested, etc.). Do you have any
idea, how we could access QDeclarativeOpenMetaObject without waiting for
4.8?
Greetings from Berlin,
Kristian & Georg
--
mixd.tv - mix your own tv
More information about the Qt-qml
mailing list