1, QTextBrowser 设置字体颜色:QTextEdit::setTextColor(QColor(255,0,0)); //QColor() 类似rgb 的颜色设置,用于确定颜色值
2,
ui->textBrowser_report->setStyleSheet("QTextBrowser{border-width:0;border-style:outset;background-color: rgba(255, 255, 255, 0);font: 75
18pt \"Sans Serif\";}");
这个可以设置textBrowser的字体,但如果把那个 红色 的 75 去掉, 字体设置就没效果了,为什么呢, 求解?