Qt-UI

Hands-on Qt

Qt Documentation | | QWidget

Our first Qt example will be to simply create an application that will open a plain window, that is a plain widget (without any functionality yet).

First we run an application by returning execution control to its event loop:

#include <QtGui/QApplication>
#include <QtGui/QWidget>

int main(int argc, char *argv[])
{
   QApplication app(argc, argv);

   QWidget main;
   main.show();

   return(app.exec());
}


Qt Documentation | | QWidget

Options: