代码如下:
#include #include int main ( int argc, char *argv[] ) {QApplication app ( argc, argv );QLabel *label = new QLabel ( "Hello, world!" );label->show();return app.exec();}