UbuntuにQt4.8.5 + QtCreatorをインストールします
Install Qt4 8 5 Qt Creator Ubuntu
helloworldディレクトリとmain.cppを作成します
#include #include int main(int argc, char *argv[]) { QApplication app(argc, argv) QPushButton but('Hello world!') but.resize(300, 100) but.show() return app.exec() }
コンパイルして実行する
qmake -project qmake make ./helloworld
運転結果