Quote Originally Posted by hannesvdc View Post
unless i use std::cout.flush()
That's because the output is buffered.

But in windows, nothing is printed at all.
You need to add "CONFIG += console" to your .pro file.

Something else is that my application never ends.
That is because you start the application event loop. This will run for ever until you tell it to stop.