QCustomPlot Discussion and Comments

How to set graph name in legend with non-englishReturn to overview

Hi,
I have a question regarding to graph name in legend box.
I want to set graph name in Asian language but it's not readable.

customPlot->legend->setVisible(true);
customPlot->legend->setFont(QFont("Arial", 14));

customPlot->graph()->setName("กราฟพยากรณ์");

It does not print as the name I set.

try UTF-8. Maybe there's something wrong with your coding pattern, I can set Chinese in graph name.

        // 设置图层名称即是设置图例名称
        QString legendName = "通道"+QString::number(j+1);
        this->graph(j)->setName(legendName);