Ok, this works very well. So a getter method is possible between different threads.

But why you recommended QAtomicInt?