Threading Classes (Qt help manual key words) These Qt Core classes provide threading support to applications. The Thread Support in Qt page covers how to use these classes. low-level className ... QThread Platform-independent way to manage threads QR…
简单的说,每个QObject的对象,都和某个创建对象所在的线程关联,如果把对象通过 moveToThread 移动到其他线程,这个对象不能有父对象,否则会出现 QObject::moveToThread: Cannot move objects with a parent A QObject instance is said to have a thread affinity, or that it lives in a certain thread. When a QObject receiv…