PDA

View Full Version : Why there is not console window?



HelloDan
8th April 2009, 13:15
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!




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.cpp



Why? thanks!

spirit
8th April 2009, 13:19
run you program in command prompt.

HelloDan
8th April 2009, 16:02
run you program in command prompt.

I do run it in command prompt always . but find nothing.