Use Qt's signals and slots mechanism to connect the threads to the cars. For example, you can create a signal that gets emitted when the car's position changes, and a slot in the thread that receives this signal and updates the car's position accordingly.
Use Qt's signals and slots mechanism to connect the threads to the cars. For example, you can create a signal that gets emitted when the car's position changes, and a slot in the thread that receives this signal and updates the car's position accordingly.