Why there is not console window?
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!
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.cpp
Why? thanks!
Re: Why there is not console window?
run you program in command prompt.
Re: Why there is not console window?
Quote:
Originally Posted by
spirit
run you program in command prompt.
I do run it in command prompt always . but find nothing.