December 20, 2010

MamdouhAlShamy MamdouhAlSha..
Lab Rat
49 posts

Arabic problem Qt app on Window mobile

Page  
1

hi,

i made a Qt app and then cross complied it for Windows Mobile
it works fine but the Arabic letter was squares ,
then i installed “Multilingual support”
Arabic letter are read in all the mobile but inside the Qt app the letter are separated
like
م ح م و د م م د و ح

but must be محمود ممدوح
any idea on how to them normal Arabic

thx in advance

16 replies

December 29, 2010

imrrk imrrk
Lab Rat
216 posts

hi..
I think you should use json..for this

December 29, 2010

Denis Kormalev Denis Kormalev
Lab Rat
1654 posts

imrrk, sorry? how is JSON related to arabic letters support?

December 29, 2010

Volker Volker
Ant Farmer
5428 posts
MamdouhAlShamy wrote:
hi, i made a Qt app and then cross complied it for Windows Mobile it works fine but the Arabic letter was squares ,

Can you post some sample code?

December 30, 2010

MamdouhAlShamy MamdouhAlSha..
Lab Rat
49 posts

it dont need code example
i just put text in label like
label->setText(“محمود ممدوح”);

i get label with
م ح م و د م م د و ح

it is the same work but each letter is separated with space

December 30, 2010

Volker Volker
Ant Farmer
5428 posts

Seems to be an encoding problem. Did you save your source file with UTF-8 encoding and did you add this to your .pro file:

  1. CODECFORTR = UTF-8
  2. CODECFORSRC = UTF-8

December 30, 2010

MamdouhAlShamy MamdouhAlSha..
Lab Rat
49 posts

i added them and still no change

December 30, 2010

Volker Volker
Ant Farmer
5428 posts

Does it work on a regular desktop environment?

December 31, 2010

MamdouhAlShamy MamdouhAlSha..
Lab Rat
49 posts

i tried it on Simulator and on HTC Touch
has the same problem

December 31, 2010

Denis Kormalev Denis Kormalev
Lab Rat
1654 posts

But have you tried it at desktop? Not under simulator, but at normal desktop environment.

December 31, 2010

MamdouhAlShamy MamdouhAlSha..
Lab Rat
49 posts

under Desktop it works FINE

December 31, 2010

Mohsen Mohsen
Lab Rat
748 posts

Check out http://developer.qt.nokia.com/wiki/QPlugs_PAText_Add_Persian_and_Arabic_support_to_WindowsCE_Mobile_applications

 Signature 

www.madagon.com

December 31, 2010

ucomesdag ucomesdag
Lab Rat
243 posts

Dude your quick! :o

 Signature 

Write “Qt”, not “QT” (QuickTime).

December 31, 2010

MamdouhAlShamy MamdouhAlSha..
Lab Rat
49 posts

it seems to be the solution
but how to use it ??

December 31, 2010

Mohsen Mohsen
Lab Rat
748 posts

Sample:

  1. #include "PAText.h"
  2. using namespace QPlugs;
  3.  
  4. void Widget::Test()
  5. {
  6.     ui->textBrowser->setText(PAText::Translate("تست ميشود Testing"));
  7. }

 Signature 

www.madagon.com

January 2, 2011

MamdouhAlShamy MamdouhAlSha..
Lab Rat
49 posts

thx
u did an amazing class

God bless you

Page  
1

  ‹‹ (Solved)The background-color of the QLineEdit      Do we need cups for qt/embedded? ››

You must log in to post a reply. Not a member yet? Register here!