Mega Code Archive
Categories
/
C++
/
Qt
Add a label and display
#include
#include
int main(int argc, char *argv[]) { QApplication app(argc, argv); QLabel *label = new QLabel("Hello Qt!"); label->show(); return app.exec(); }