Important thing about Qt is that you must work with Qt GUI only from GUI thread, that is main thread.
stackoverflow.com