[Qt-interest] two interfaces: gui, cl, inherit a QObject
Gabriele Kahlout
gabriele at mysimpatico.com
Wed May 19 17:12:24 CEST 2010
> One application. A solution could be to have the controller be the
> CLinterface also, as a thread. So when the user/deployment choice is CL it
> will not instantiate any CLinteface and register signals, but start itself
> as a thread that reads input. In that cases, no signals will be emitted but,
> the slots will be called.
>
>
In this case I'd have to use QApplication::processEvents(); after each call.
Which is at least slow. I wish I could use readyread stdin signals, to avoid
blocking the thread in which Controller executes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100519/6efac852/attachment.html
More information about the Qt-interest-old
mailing list