I have a QML file and I want to integrate it into a graphics view framework 
based UI application written in C++.

   QDeclarativeEngine *engine = new QDeclarativeEngine;
   QDeclarativeComponent component(engine, QUrl::fromLocalFile("Button.qml"));
   QGraphicsObject *object =
           qobject_cast<QGraphicsObject *>(component.create());
   scene->addItem(object);

How can I change the property of the element in C++ application?

Thanks

James


_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-qml

Reply via email to