Qt1
Download source
The easiest way to create a makefile for Qt is to use the qmake build tool supplied with Qt. If you have saved Qt1.cpp in its otherwise empty directory, all you need to do is:
qmake -project qmake make
The first command tells qmake to create a project file (a .pro file). The second tells it to create a platform-specific makefile based on the project file. The third executes the makefile.
#include <QApplication> #include <QWidget> int main(int argc, char *argv[]) { QApplication app(argc, argv); QWidget window; window.resize(250, 150); window.setWindowTitle("Simple example"); window.show(); return app.exec(); }
Maintained by John Loomis, updated Tue Jun 01 12:16:24 2010