[Interest] Difficulty running Timer from QThread

Thiago Macieira thiago.macieira at intel.com
Mon Jul 19 17:57:52 CEST 2021


On Sunday, 18 July 2021 23:08:13 PDT Björn Schäpers wrote:
> you should parent your QTimer, and moveToThread afterwards.

That shouldn't be "AND". That should be an exclusive OR: you either parent 
your QObject or you moveToThread, not both. You cannot move a QObject that has 
a parent to another thread. You can only move the entire hierarchy.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel DPG Cloud Engineering





More information about the Interest mailing list