O'Reilly logo

Qt 5 Projects by Marco Piccolino

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Writing the textual application

Once we are done with project setup, we can turn our attention to main.cpp. This minimal, autogenerated file contains the following:

#include <QCoreApplication>int main(int argc, char *argv[]){    QCoreApplication a(argc, argv);    return a.exec();}

There is an include, plus a main function with two short instructions: the first one creates a QCoreApplication instance on the stack, and the second one calls its exec method.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required