I downloaded Eclipse using a plugin to work with C / C ++ on top of Windows. I downloaded Cygwin (the base and the developer mostly) and it works fine to greet the world application.
Now I want to work with Qt. Instead of loading the framework, I downloaded the Qt libraries 4.8.0 for Windows (minGW 4.4, 354 MB) libraries, since the other option was the same for Visual Studio. I know this may be part of the problem as it only looks for the minGW compiler. If I need to do something different, please tell me.
Then I restarted the computer, opened Eclipse, wrote this Qt hello world for a new C ++ application using the Cygwin compiler:
#include <qapplication.h>
#include <qpushbutton.h>
using namespace std;
int main( int argc, char * args[] )
{
cout << "Here goes!" << endl;
QApplication app( argc, args );
QPushButton hello( "Hello World!", 0 );
hello.resize( 100, 50 );
app.setMainWidget( &hello );
hello.show();
return app.exec();
}
.h. Qt\bin ?
, Qt, ( , , , Qt - ).
, , (, "" -) .