Mega Code Archive

 
Categories / C++ / Qt
 

Add a label and display

#include <QApplication> #include <QLabel> int main(int argc, char *argv[]) {     QApplication app(argc, argv);     QLabel *label = new QLabel("Hello Qt!");     label->show();     return app.exec(); }