Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Arabic problem Qt app on Window mobile
Forum Updated to NodeBB v4.3 + New Features

Arabic problem Qt app on Window mobile

Scheduled Pinned Locked Moved Mobile and Embedded
17 Posts 6 Posters 9.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MamdouhAlShamy
    wrote on last edited by
    #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

    1 Reply Last reply
    0
    • I Offline
      I Offline
      imrrk
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DenisKormalev
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #4

          [quote author="MamdouhAlShamy" date="1292861985"]hi,
          i made a Qt app and then cross complied it for Windows Mobile
          it works fine but the Arabic letter was squares ,
          [/quote]

          Can you post some sample code?

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • M Offline
            M Offline
            MamdouhAlShamy
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            • G Offline
              G Offline
              goetz
              wrote on last edited by
              #6

              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:

              @
              CODECFORTR = UTF-8
              CODECFORSRC = UTF-8
              @

              http://www.catb.org/~esr/faqs/smart-questions.html

              1 Reply Last reply
              0
              • M Offline
                M Offline
                MamdouhAlShamy
                wrote on last edited by
                #7

                i added them and still no change

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  goetz
                  wrote on last edited by
                  #8

                  Does it work on a regular desktop environment?

                  http://www.catb.org/~esr/faqs/smart-questions.html

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    MamdouhAlShamy
                    wrote on last edited by
                    #9

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

                    1 Reply Last reply
                    0
                    • D Offline
                      D Offline
                      DenisKormalev
                      wrote on last edited by
                      #10

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

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        MamdouhAlShamy
                        wrote on last edited by
                        #11

                        under Desktop it works FINE

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          mohsen
                          wrote on last edited by
                          #12

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

                          1 Reply Last reply
                          0
                          • U Offline
                            U Offline
                            ucomesdag
                            wrote on last edited by
                            #13

                            Dude your quick! :o

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

                            1 Reply Last reply
                            0
                            • M Offline
                              M Offline
                              MamdouhAlShamy
                              wrote on last edited by
                              #14

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

                              1 Reply Last reply
                              0
                              • M Offline
                                M Offline
                                mohsen
                                wrote on last edited by
                                #15

                                Sample:
                                @#include "PAText.h"
                                using namespace QPlugs;

                                void Widget::Test()
                                {
                                ui->textBrowser->setText(PAText::Translate("تست ميشود Testing"));
                                }@

                                1 Reply Last reply
                                0
                                • M Offline
                                  M Offline
                                  MamdouhAlShamy
                                  wrote on last edited by
                                  #16

                                  thx
                                  u did an amazing class

                                  God bless you

                                  1 Reply Last reply
                                  0
                                  • M Offline
                                    M Offline
                                    mohsen
                                    wrote on last edited by
                                    #17

                                    It's my pleasure! Hope it would be useful for all. :-)

                                    1 Reply Last reply
                                    0

                                    • Login

                                    • Login or register to search.
                                    • First post
                                      Last post
                                    0
                                    • Categories
                                    • Recent
                                    • Tags
                                    • Popular
                                    • Users
                                    • Groups
                                    • Search
                                    • Get Qt Extensions
                                    • Unsolved