Quote Originally Posted by Zlatomir View Post
Do you have CONFIG += console in your .pro file? Tell us more about what is happening: what os are you using? the console/terminal doesn't appear? or it appears without output?
No, I have added CONFIG += console in my .pro file and now I can see the output, but when the application is closed. I'm using MS Windows. I have run the project from Qt Creator and I expected see the output in "Application output".

Quote Originally Posted by Zlatomir View Post
And why are you using a QApplication and it's exec()? Do you really need that, because it create an event loop that you will want to close (by connecting a signal to it's quit slot)
No, I have created an empty project by "Qt Gui Application" and QApplication and it's exec() appear by default. What's the best way to create a console project?

Regards!