title: How to launch a QThread correctly
body: <p>I think I'm missing something obvious here.</p>
  <p>I'd like to Run GTest with the QT Eventloop. For the QT Eventloop to run I have to start the QApplication.</p>
  <p>The GTEST RUN_ALL_TESTS should then start inside a newly created QThread.</p>
  <pre><code>/**
   * @brief Executes GTest. After Executing GTest it will stop the QApllication
  */
  static void ExecuteGTest();
  
  
  int main(int argc, char* argv[])
  {
  
    ::testing::InitGoogleTest(&amp;argc, argv);
    QGuiApplication app(argc, argv);
  
    auto pGTest = std::make_unique&lt;QThread&gt;(QThread::create(ExecuteGTest));
    pGTest-&gt;start();
    const int iGTestRes = app.exec();
    return iGTestRes;
  }
  
  static void ExecuteGTest()
  {
    const int iRes = RUN_ALL_TESTS();
    //terminate the Qt Eventloop and return GTest Result
    QCoreApplication::exit(iRes);
  }
  </code></pre>
  <p>However ExecuteGTest() is never executed. What am i missing here? Could you help me out?</p>