#include<QtGui/QApplication>
#include<QLabel>

Q_DECL_EXPORTintmain(intargc,char*argv[])
{
QApplicationapp(argc,argv);
//QLabel*label=newQLabel("HelloQt!");
//QLabel对像,QLabel是一个qt提供的小控件,显示一行文本

QLabel*label=newQLabel("<h2><i>Hello</i><fontcolor=red>Qt!</font></h2>");
label->show();
//显示QLabel
//returnapp->exec();
returnapp.exec();
}

相关文章:

  • 2021-04-19
  • 2021-06-21
  • 2021-04-19
  • 2022-02-01
  • 2022-12-23
  • 2021-08-11
  • 2022-01-03
  • 2021-04-15
猜你喜欢
  • 2021-08-16
  • 2022-01-01
  • 2021-06-18
  • 2021-12-18
  • 2021-05-11
  • 2022-12-23
相关资源
相似解决方案