[Qt-interest] Accessing QWidgets form different QThreads
Piotr Dąbrowski
ultr at ultr.pl
Fri May 14 19:18:24 CEST 2010
Hi,
My program is divided into several threads. Each of them does some
work and during it's execution has to add elements to QTree and log
some lines to QTextEdit.
However QWidgets should only be accessed from within the main thread
(and indeed I get UI errors when doing otherwise).
Therefore my question is: what is a recommended way to access QWidgets
from another thread?
I thought of using QScriptEngine and passing only QtScript code to the
main thread. However this would rather be a hack not a solution.
--
Piotr Dąbrowski
More information about the Qt-interest-old
mailing list