Qt HelloWorld 用label显示

来源:互联网 发布:软件逻辑笔试题 编辑:程序博客网 时间:2024/06/09 21:55
#include <QApplication>
#include <QLabel>

int main(int argc,char *argv[])
{
    QApplicationapp(argc,argv);
    QLabel *label = newQLabel("

helloQt!

");
   label->show();
    return app.exec();
}

0 0