#include <qapplication.h>#include <qlabel.h>int main(int argc, char *argv[]) { QApplication a(argc, argv); QLabel l; l.show(); return a.exec();}
#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();}
#include <qwidget.h>#include <qlabel.h>class MyMegaWidget : public QWidget {private: QLabel m_L;}
#include <qwidget.h>class QLabel;class MyMegaWidget : public QWidget {private: QLabel *m_L;}