https://blog.csdn.net/fm0517/article/details/4805462 

 

ui.label是QLabel

ui.label_4->setText("some text");

//设置字号

QFont ft;
ft.setPointSize(12);
ui.label_4->setFont(ft);

//设置颜色
QPalette pa;
pa.setColor(QPalette::WindowText,Qt::red);
ui.label_4->setPalette(pa);

相关文章:

  • 2021-06-01
  • 2021-07-25
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
  • 2022-01-23
  • 2021-09-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-12
  • 2022-01-18
  • 2022-12-23
相关资源
相似解决方案