I have just started learning Qt and compiled and executed this spinet
#include <qapplication.h>
#include <qlabel.h>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QLabel *label = new QLabel("Linux is wonderful", 0);
app.setMainWidget(label);
label->show();
return app.exec();
}
I made it run using following steps :
qmake -project
qmake .pro file
make
But here this code will be written in a single .cpp file , so i want to ask how large projects
are handled when there are more than one .cpp files. In case of multiple .cpp files what steps are followed to compile and execute. Pls explain.
For multiple .cpp files, your .pro file should have something like this in it:
… a lot of people will spread it out across multiple lines, like this, to make it easier to read: