On Tuesday, 4 June 2019 13:41:31 PDT Mutz, Marc via Development wrote:
> That QThread is-a QObject has caused problems in the past. How to use
> QThread correctly has been the source of much discussion (e.g.
> https://blog.qt.io/blog/2010/06/17/youre-doing-it-wrong/), and any
> thread can have an event loop via QEventLoop. But, yes, QThread probably
> needs to stay around longer. That shouldn't mean it does so forever. I
> think std::thread is much easier to use and understand, and with
> QEventLoop supporting it already, I don't feel much attachment to
> QThread anymore.

Unti std::thread can emit signals, no, it's not a sufficient solution.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel System Software Products



_______________________________________________
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development

Reply via email to