Posts Tagged 'Qt'

Hello world!

This is my first post. Since lately I’ve been mostly working with Qt, here’s my greeting:

#include <QApplication>
#include <QPushbutton>

int main( int argc, char **argv )
{
    QApplication a( argc, argv );

    QPushButton hello( "Hello world!", 0 );
    hello.resize( 100, 30 );
    hello.show();

    return a.exec();
}

You should see this:
hellosnapshot1