Problem when manipulating QT window geometry

Christian Helmuth christian.helmuth at ...1...
Wed Sep 17 08:56:06 CEST 2014


Hi,

On Tue, Sep 16, 2014 at 12:43:16PM +0200, Christian Prochaska wrote:
> I was not sure about that either, but found this interesting document,
> which states that GUI objects can only be used from the main thread:
> 
> http://qt-project.org/doc/qt-5/threads-qobject.html

Christian, you're dead right about accessing QWidgets: When
programming Qt one should definitely stay away from manipulating GUI
related QObjects from non-main threads. The best practice is to
connect signals in QObjects belonging to other threads to slots in
QWidgets. All attempts to circumvent this approach I know of failed
dramatically.

Greets
-- 
Christian Helmuth
Genode Labs

http://www.genode-labs.com/ · http://genode.org/
https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth




More information about the users mailing list