#include <qapplication.h> #include <qlabel.h> int main(int argc, char** argv) { QApplication app(argc, argv); QLabel* lbl = new QLabel("Hello, Dolly"); lbl->resize(80,40); app.SetMainWidget(lbl); lbl->show(); app.exec(); return 0; }
Example 1: What's wrong with this code?