Use signals and slots or use a pointer to shared memory that you protect using a mutex. Reading the Qt documentation here and here would be a good place to start.