Thanks for quick replies, I'm posting code here with simple example of what I
am doing:
Code:
#include iostream
#include osg/Notify
#include osg/io_utils
#include osg/ArgumentParser
#include osg/MatrixTransform
#include osg/AutoTransform
#include osg/Camera
#include osg/TexMat
#include
Problem solved! Got it from Qt side (thanks to Maxim Gammer for advice), those
solved problem:
Code:
QTextCodec *cyrillicCodec = QTextCodec::codecForName(CP1251);
QTextCodec::setCodecForTr(cyrillicCodec);
QTextCodec::setCodecForLocale(cyrillicCodec);
ok)
2012/10/10 Max Sergeev sergeev.m...@gmail.com
Problem solved! Got it from Qt side (thanks to Maxim Gammer for advice),
those solved problem:
Code:
QTextCodec *cyrillicCodec = QTextCodec::codecForName(CP1251);
QTextCodec::setCodecForTr(cyrillicCodec);
Hello!
Got another question about Qt and OSG :)
There is project where Qt controls are used inside OSG scene (creating camera
for each of them and stuff), and the next problem is that I need cyrillic
symbols (russian language). Using wstring works using OSG HUD, but in Qt the
symbols are
Have you tried const char* (string) and UTF-8 instead of wide ones?
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
hi.
example -
bool BaseTextObject::SetText(std::string Value, bool UTF_Encoding)
{
if (UTF_Encoding == true)
{
osgText::String textstr;
textstr.set(Value, osgText::String::ENCODING_UTF8);
text-setText(textstr);
}
else
{
text-setText(Value);
}
Can you provide some simple test case of what you want (which anyone
can 'make')? It's hard to conclude anything from what you've posted.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
E.g., I've had problems with Qt (not OSG) with UTF-8 russian text. I
recall there were some problems with QTextCodec as well. So more
context is required. And test case would be the best.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
I do not know very well English. I can help in Russian language (my email -
maxgam...@gmail.com)
2012/10/9 michael kapelko korn...@gmail.com
Can you provide some simple test case of what you want (which anyone
can 'make')? It's hard to conclude anything from what you've posted.
9 matches
Mail list logo