[Qt-interest] Warning: QObject::startTimer: timers cannot be started from another thread

Eirik Ulvik eiriku at simsurgery.com
Thu Mar 18 18:42:47 CET 2010


I am in the process of making our application multithreaded. The problem
I am now facing is the error message in the subject is printed all the
time while executing the program. I also get the same sort of message
for QObject::killTimer. After googling a bit I found, as expected, that
this is related to doing GUI operation in threads other than the main Qt
GUI thread.

My next step is to strip all GUI operations from the code that runs in a
separate thread. As much of this code is quite old and did not separate
GUI code from other code, locating the code in question is difficult. So
my question to the list is if anyone has had experience in a similar
situation or have some general pointers on good ways of pin pointing GUI
code I would be very grateful.

Regards,
Eirik

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 551 bytes
Desc: OpenPGP digital signature
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100318/08c049b5/attachment.bin 


More information about the Qt-interest-old mailing list