我正在尝试找到一种方法来显示数学符号,如\theta、\phi、\dot{\theta}、...等。我找不到在我的绘图中显示这些字母的方法.qcustomplot是否支持数学符号?我试过下面一行,但很少有字母出现,但其余的没有。ui->customPlot1->graph(0)->setName(QString("\u0024")); 最佳答案 您正在寻找的是:ui->customPlot1->graph(0)->setName(QString::fromUtf8("\u03B8"));例如,这将为您提供小写字母theta。使用UT