[Qt-qml] Qml to C++

2010-06-11 Thread Cristian Daniel Stamateanu
Hello, I have a class defined in C++ called RssItem and exposed to QML with qmlRegisterType(...). In Qml I am accessing an XmlListModel and inside the delegate I am creating a RssItem object for each item in the model that is displayed in a listview in qml. At some point when clicking on the item i

Re: [Qt-qml] Qml to C++

2010-06-14 Thread Christian Kamm
On Friday 11 June 2010 23:57:18 ext Cristian Daniel Stamateanu wrote: > Hello, > I have a class defined in C++ called RssItem and exposed to QML with > qmlRegisterType(...). In Qml I am accessing an XmlListModel and > inside the delegate I am creating a RssItem object for each item in the > model t

Re: [Qt-qml] Qml to C++

2010-06-14 Thread Cristian Daniel Stamateanu
Thanks Christian, it works like you said: void DownloadManager::addDownload(const QString &path, const QScriptValue & rssItemSV) { ... RssItem * rssItem = qobject_cast(rssItemSV.toQObject()); ... } Regards, Cristi ___ Qt-qml mailing list Qt-qml@t