01 标签

来源:互联网 发布:mac安装tomcat 编辑:程序博客网 时间:2024/06/06 17:28
#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();}

运行结果:


原创粉丝点击