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
Post a Comment