Re: [osg-users] Cyrillic (russian) in Qt inside OSG

2012-10-10 Thread Max Sergeev
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

Re: [osg-users] Cyrillic (russian) in Qt inside OSG

2012-10-10 Thread Max Sergeev
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);

Re: [osg-users] Cyrillic (russian) in Qt inside OSG

2012-10-10 Thread Maxim Gammer
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);

[osg-users] Cyrillic (russian) in Qt inside OSG

2012-10-09 Thread Max Sergeev
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

Re: [osg-users] Cyrillic (russian) in Qt inside OSG

2012-10-09 Thread michael kapelko
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

Re: [osg-users] Cyrillic (russian) in Qt inside OSG

2012-10-09 Thread Maxim Gammer
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); }

Re: [osg-users] Cyrillic (russian) in Qt inside OSG

2012-10-09 Thread michael kapelko
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

Re: [osg-users] Cyrillic (russian) in Qt inside OSG

2012-10-09 Thread michael kapelko
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

Re: [osg-users] Cyrillic (russian) in Qt inside OSG

2012-10-09 Thread Maxim Gammer
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.