一路next
#include <QApplication>
#include <QLabel>
#include <QPushButton>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QLabel *label = new QLabel("m2222ay hello 0000000000000");
label->show();
return app.exec();
}
ctrl +r
本文展示了一个使用Qt库创建简单应用程序的例子,通过一个标签组件显示文本。代码中包含了必要的头文件,并通过main函数初始化应用程序,创建并显示了一个带有文本的标签。
3732

被折叠的 条评论
为什么被折叠?



