Qt Threading mechanism
General and Desktop
3
Posts
3
Posters
834
Views
1
Watching
-
No, only the main or GUI thread can work with UI objects.
From "this":http://qt-project.org/doc/qt-5/thread-basics.html page:
GUI Thread and Worker Thread
As mentioned, each program has one thread when it is started. This thread is called the "main thread" (also known as the "GUI thread" in Qt applications). The Qt GUI must run in this thread. All widgets and several related classes, for example QPixmap, don't work in secondary threads. A secondary thread is commonly referred to as a "worker thread" because it is used to offload processing work from the main thread.