> I am wondering how to integrate HPX with GUI applications. I'd like to > have one GUI locality where e.g. a Qt application is running. Then I'd > like to trigger GUI events from HPX actions. > > Problem: Both HPX and Qt want the mainloop.
HPX does not 'want' access to the main loop. > I was able to do a similar thing with ZeroMQ and Qt. There I gave the > mainloop to Qt. ZeroMQ then provides a file descriptor and I can use a > "QSocketNotifier" that triggers whenever the ZeroMQ-socket receives an > event. The QSocketNotifier is then connected to a ZeroMQ event handler. > That way, both parts are happy. > > How would you do that with HPX? There are several ways how to integrate Qt with HPX and let it run its main loop. There is this example which explicitly drives Qt using HPX's main_pool_executor: https://github.com/STEllAR-GROUP/hpx/tree/master/examples/qt. There is also a way to leave Qt running on the main thread (i.e. the one that called main()):https://github.com/STEllAR-GROUP/hpx/blob/master/examples/quickstart /use_main_thread.cpp. Both options allow to coordinate things between the two worlds. I'd suggest to go with the solution based on the executor. HTH Regards Hartmut --------------- http://boost-spirit.com http://stellar.cct.lsu.edu _______________________________________________ hpx-users mailing list [email protected] https://mail.cct.lsu.edu/mailman/listinfo/hpx-users
