VTK版本:8.20
解决方案:
vtkNew<vtkTextActor> textActor;
vtkNew<vtkTextProperty> textProperty;
textProperty->SetFontFamily(VTK_FONT_FILE);
textProperty->SetFontFile(QString("E:/songti.ttf").toUtf8());
textProperty->SetColor(1, 0, 0);
textActor->SetTextProperty(textProperty);
textActor->SetInput(QString::fromLocal8Bit("我是中文123ascdj回电话傻大姐dfdsf").toUtf8());
textActor->SetDisplayPosition(50, 50);
contextView->GetRenderer()->AddActor(textActor);