[vtkusers] Show Chinese Character on qvtkwidget

lee lihouxing at yeah.net
Mon Apr 27 05:31:40 EDT 2015


Hi, I am right now been bothered by the showing of Chinese Character on
qvtkwidget.The following is my codes:
*	QString temp;
	temp="this is a test哦哦";
	QMessageBox::information(this,"test",temp);
	std::string str = temp.toStdString();
	const char* ch = str.c_str();
	m_textActor->SetInput(ch);
	m_render->AddActor2D(m_textActor);
	m_renWin->Render();*
the result shows the English words correctly, but the last two Chinese word
in a form which I don't understand.
So I am wondering anyone who has solved this problem can share the methods.
Thanks a lot.



--
View this message in context: http://vtk.1045678.n5.nabble.com/Show-Chinese-Character-on-qvtkwidget-tp5731627.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list