FYI, I added a comment on "asynchronous subprocess" feature request.

http://bugreports.qt.nokia.com/browse/QTBUG-15178?focusedCommentId=132586&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-132586
.......................
Perhaps http://doc.qt.nokia.com/4.7/qml-workerscript.html could be
used as a "model" for how such an asynchronous subprocess would work
with QML.
Where 
http://doc.qt.nokia.com/4.7/qml-listmodel.html#using-threaded-list-models-with-workerscript
provides an example of how the workerscript is invoked as a separate
thread without blocking the main GUI thread.
http://doc.qt.nokia.com/4.7/qml-workerscript.html#sendMessage-method
and http://doc.qt.nokia.com/4.7/qml-workerscript.html#onMessage-signal
can be used to communicate between the threads. A similar technique
could be used for issuing commands to subprocess and having an action
performed asynchronously in the GUI upon its completion.

See http://doc.qt.nokia.com/4.7/declarative-threading-workerscript.html
for an example of using WorkerScript;
http://doc.qt.nokia.com/4.7/declarative-threading-threadedlistmodel.html
for example using WorkerScript in QML ListModel element.
.......................

Is there any chance this feature might get implemented sometime in the
near future? Or should I just follow
http://xizhizhu.blogspot.com/2010/10/hybrid-application-using-qml-and-qt-c.html
and add libexpect code in C++?

-- Niels
http://nielsmayer.com
_______________________________________________
Qt-qml mailing list
Qt-qml@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-qml

Reply via email to