m_labelTitletext->setText("仿真系统"); //设置字号 QFont ft; ft.setPointSize(16); m_labelTitletext->setFont(ft); //设置颜色 QPalette pa; pa.setColor(QPalette::WindowText,QColor(200, 130, 143)); m_labelTitletext->setPalette(pa);
标签:ft,QT,QPalette,pa,字体,设置,labelTitletext,QLabel From: https://www.cnblogs.com/RedWetPlace/p/17171672.html