It's an example from C++ GUI programming with Qt 4.
In this example, the book tells: the threads will print message to the console. but I cann't find even the console!
Qt Code:
void Thread::run() { while (!stopped) std::cerr << qPrintable(messageStr); stopped = false; std::cerr << std::endl; } // the pro file TEMPLATE = app CONFIG += console thread HEADERS = thread.h \ threaddialog.h SOURCES = main.cpp \ thread.cpp \ threaddialog.cppTo copy to clipboard, switch view to plain text mode
Why? thanks!
Bookmarks