You can use QObject.moveToThread() if you need to move a Qt object from one thread to another (does not apply to Qt GUI objects which must always remain in the main thread).Even if the Qt class is reentrant, you cannot share access to a Qt object between threads unless the Qt documentation for that class explicitly states that instances are thread safe.anything that subclasses QWidget or similar). You cannot create or access a Qt GUI object from outside the main thread (e.g.The following rules are the most widely sought: The Qt C++ documentation provides a good overview of which classes are reentrant (can be used to instantiate objects in multiple threads). While some parts of the Qt framework are thread safe, much of it is not.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |