multithreading - Qt - Worker thread freezes the UI -


this first experience on threading qt, bear me.

i have singleton "system" object periodically executes heavy piece of code. control system singleton ui, system not aware of ui.

i create thread in main, , move system it:

qthread systemthread;  system::instance()->movetothread(&systemthread);  systemthread.start(); qapp.exec(); 

the ui hangs until system's periodical processing cycle complete.

i have tried subclass qthread , calling exec run method.

what problem? i'm doing wrong.

best regards

see excellent article threads, events , qobjects in qt developer wiki. seems wrong thread affinity, can check qobject::thread().


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -