Qt Hello World
//master header for a Gui
#include <QtGui>
//main function
int main(int argc, char *argv[])
    //app is an object that governs the application
    //make sure everything is initialized correctly
    QApplication app(argc, argv);
    //QPushButton is a widget
    //the text of the button is Hello World
    QPushButton *button = new QPushButton("Hello World");
    //show the button
    return app.exec();

To compile:
cd helloWorld

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.