[omniORB] Integration into a foreign event-loop

Liang Qi cavendish.qi at gmail.com
Fri Jul 24 10:53:01 BST 2009


Not sure which example you are talking about. But you can try the
call_back, at least from guiclient side, you can use signal/slot
between the OmniORBThread and Qt Gui. Then it could also work on
server side.

Regards,
Liang

2009/7/23 Felix Nawothnig <fn at drdannenberg.de>:
> Liang Qi wrote:
>>>
>>> Could you try my articles? Not sure whether they are solutions for
>>> your requirements or not.
>>> http://www.qiliang.net/blog/tag/omniorb
>
> This only works because your server is not a GUI application.
>
> Assume you'd make MainWidget implement another interface in the client, and
> have MainWidget::echoThread() become a CORBA method dispatched by omniORB,
> instead of a slot dispatched by Qt (well, it could be both).
>
> You could no longer do that editor->setText(text); call inside
> MainWidget::hello() - to quote the Qt documentation ("Thread Support in
> Qt"):
>
> Although QObject is reentrant, the GUI classes, notably QWidget and all its
> subclasses, are not reentrant. They can only be used from the main thread.
> As noted earlier, QCoreApplication::exec() must also be called from that
> thread.
>
> Felix
>



-- 
http://www.qiliang.net



More information about the omniORB-list mailing list