title: How to integrate Boost.Asio main loop in GUI framework like Qt4 or GTK
body: <p>Is there any way to integrate Boost.Asio with Qt4 (preferred) or GTK main loop?
  GTK provides poll(2) like API so technically is should be possible. Qt provides its own networking layer, however I prefer to use existing code written for Boost.Asio.
  I want to integrate them <strong>without</strong> using an additional thread.</p>
  
  <p>Is there any reference how to do this for Qt4 (preferred) or GTKmm?</p>
  
  <p>Thanks.</p>
  
  <p><strong>Edit</strong></p>
  
  <p>I want to clearify several things to make the answer easier. Both Qt and GTKmm provide
  "select like" functionality:</p>
  
  <ul>
  <li><a href="http://qt-project.org/doc/qt-5.0/qtcore/qsocketnotifier.html" rel="noreferrer">http://qt-project.org/doc/qt-5.0/qtcore/qsocketnotifier.html</a></li>
  <li><a href="http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/group__MainLoop.html" rel="noreferrer">http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/group__MainLoop.html</a></li>
  </ul>
  
  <p>So, the question is, how to integrate existing "selectors/pollers" as reactor to
  Boost.Asio <code>io_service</code>. Today, Boost.Asio can use select, kqueue, epoll, /dev/poll and iocp as reactor/proactor service. I want to integrate it to the main-loop of GUI framework.</p>
  
  <p>Any suggestions and solutions (better) are welcome.</p>