Flush the output buffer:
Qt Code:
#include <iostream> void Form1::fileOpen(){ std::cout << "my output" << std::endl; }To copy to clipboard, switch view to plain text mode
And remember that you have to run the application from a terminal.
BTW. It might be easier to use qDebug() instead of those cout statements.





Reply With Quote
Bookmarks