Thursday, July 08, 2010

writing in Arabic On Qt

in your constructor put this line:
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
// i tried it with a QLabel and it worked
tada , you now have arabic support in your User interface

2 comments:

  1. great it use UTF-8, what about the ltr & rtl & alignment ?

    ReplyDelete
  2. i will check and post code here isA
    :)
    Thanks for visiting ya MAF

    ReplyDelete