this
) as the parent of an object created in the thread (since the QThread object itself was created in another thread).delete
on a QObject from a thread other than the one that owns the object (or accessing the object in other ways) is unsafe, unless you guarantee that the object isn't processing events at that moment. Use QObject::deleteLater() instead, and a DeferredDelete event will be posted, which the event loop of the object's thread will eventually pick up. By default, the thread that owns a QObject is the thread that creates the QObject, but not after QObject::moveToThread() has been called.Home · All Classes · Modules |
Constant | Value | Description |
---|---|---|
QThread.IdlePriority | 0 | scheduled only when no other threads arerunning. |
QThread.LowestPriority | 1 | scheduled less often than LowPriority. |
QThread.LowPriority | 2 | scheduled less often than NormalPriority. |
QThread.NormalPriority | 3 | the default priority of the operatingsystem. |
QThread.HighPriority | 4 | scheduled more often than NormalPriority. |
QThread.HighestPriority | 5 | scheduled more often than HighPriority. |
QThread.TimeCriticalPriority | 6 | scheduled as often as possible. |
QThread.InheritPriority | 7 | use the same priority as the creating thread.This is the default. |
PyQt 4.11.4 for X11 | Copyright © Riverbank Computing Ltd and The Qt Company 2015 | Qt 4.8.7 |