title: How to integrate Asio network library with Qt library?
body: <p>I want to use Asio and Qt together ? each of them have a two method that must be called and each of them are blocking for example : Asio has io_service.run() and qt has QCoreApplication.exec() if I run one of them then another cannot be run.</p>
  
  <p>I have two solutions:</p>
  
  <ol>
  <li>create another thread and call io_service.run() from that.</li>
  <li>create a timer with 100ms cycle and call io_service.poll() from same thread that call QCoreApplication.exec().</li>
  </ol>
  
  <p>These solutions are correct?</p>