[Bug 32064] Unable to launch adept on AMD64 - Flight 4

Krzysztof Lichota krzysiek-launchpad.ubuntu.com at lichota.net
Fri Mar 24 08:19:21 UTC 2006


Public bug report changed:
https://launchpad.net/malone/bugs/32064

Comment:
OK, I understand the issue with interactivity, but you haven't addressed
the problem of updating widgets from threads, which breaks Qt
multithreading guarantees (as described in docs).

If you have tried using processEvents(), fair enough, I do not have
reasons to not believe you that it is not a way to go. I have proposed
also second solution - using timers and updating lists in timer
handlers. This might be too hacky.

So maybe we should use the third way, I have used it in one
multithreaded Qt application and it works OK. You spawn worker threads
which do the processing, but without touching widgets. Worker thread
packs proper data into Qt events and passes it to GUI thread using
postEvent(). Widget intercepts event and updates its structures.

What do you think?




More information about the kubuntu-bugs mailing list