you can't access to GUI from another thread directly. you should use signal/slots or custom events.