hannesvdc
11th December 2010, 23:35
Hi all,
I'm quite new to Qt and i have a question about something whether or not
something is normal:
I made a very simple main function:
#include <QtGui/QApplication>
#include <iostream>
int main( int argc, char* argv[] ){
QApplication app( argc, argv);
std::cout<<"initialisation successful!";
return app.exec();
}
When i run it( compiling gave no errors), nothing is printed to the terminal
in ubuntu, unless i use std::cout.flush(), then it is printed. But in windows,
nothing is printed at all.
Something else is that my application never ends.
Is this normal?
hannesvdc
I'm quite new to Qt and i have a question about something whether or not
something is normal:
I made a very simple main function:
#include <QtGui/QApplication>
#include <iostream>
int main( int argc, char* argv[] ){
QApplication app( argc, argv);
std::cout<<"initialisation successful!";
return app.exec();
}
When i run it( compiling gave no errors), nothing is printed to the terminal
in ubuntu, unless i use std::cout.flush(), then it is printed. But in windows,
nothing is printed at all.
Something else is that my application never ends.
Is this normal?
hannesvdc