On Fri, Mar 13, 2009 at 10:28 AM, matay matay <[email protected]> wrote:

> Hi, i am new to Qt , recently i began to devolope Qt program, but i have a
> problem with displaying arabic strings, the part of program is here:
> in one cpp file i defined this :
> QMessageBox::information(this, tr("ىزدۅۅ"), tr(" ىزدۅۅ"), QMessageBox::Ok);
>

You can use QString::fromLocal8Bit("whatever non English text") to input it.
But the best approach IMHO would be to use english strings and use the
translator facilities provided in Qt:
http://doc.trolltech.com/qtjambi-4.4/html/com/trolltech/qt/qtjambi-linguist-manual.html

 and in mainwindow i also defined those:
> QTextCodec::setCodecForLocale(QTextCodec::codecForName("ISO 8859-6"));
>  QTextCodec::setCodecForCStrings(QTextCodec::codecForName("ISO 8859-6"));
>  QTextCodec::setCodecForTr(QTextCodec::codecForName("ISO 8859-6"));
> but the string in QMessageBox dialog is ?????. what is the problem of this?
> can anybody help me?
> thanks advanced!
> --
> All The Best!
>
> _______________________________________________
> Qt-jambi-interest mailing list
> [email protected]
> http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
>
>
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to