you can't access to GUI from separate thread directly. you should use signal/slots mechanism of custom events.