feat: fix text measure tool chinese display bug

This commit is contained in:
kradchen
2025-06-19 10:14:48 +08:00
parent cb015f01e7
commit 332f8fdb41

View File

@@ -37,7 +37,7 @@ void pqFontPropertyWidget::SetTextInput()
{ {
return; return;
} }
QByteArray ba = qstr.toLatin1(); QByteArray ba = qstr.toUtf8();
this->textActor->SetTextInput(ba.data()); this->textActor->SetTextInput(ba.data());
this->tRender->Render(); this->tRender->Render();
} }