[Interest] binding two QML object within C++

Thiago Macieira thiago.macieira at intel.com
Thu May 29 22:02:41 CEST 2014


Em qui 29 maio 2014, às 12:35:11, Alex Montgomery escreveu:
> // C++ code
> QQmlComponent simpleFactory;
> simpleFactory.loadUrl(QUrl("qrc:///Qml/Simple.qml"));
> QQuickItem* item1 = qobject_cast<QQuickItem*>(m_simpleFactory.create());
> QQuickItem* item2 = qobject_cast<QQuickItem*>(m_simpleFactory.create());
> 
> // how do I bind item2's myBool to the value of item1's myBool?
> 
> This is very simply done within QML, but I don't see how to do that glue in
> C++.

It doesn't exist.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list