×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    53

    Unhappy Unicode Text display wrong in Button

    Hi all!

    Sorry for my English, I'm Vietnamese.
    I have some trouble to show Unicode text in QT Symbian. In Label and Text Edit my Unicode text display correct but in Push Button ( and Tool Button ) my font is fault.
    You can see the image :



    In Windows XP and Linux my Unicode text display OK. It’s only fault when I use it on Symbian OS.
    Someone give me some advance about this trouble please!
    Thank for your help!

    p/s: I’m using : S60_3rd_FP2_SDK_v1.1
    qt-symbian-opensource-4.6.2
    Carbide.c++_v2.3
    Language: Vietnamese
    I have tested in Emulator and Nokia E63.

    And maybe you need this : "Viết lên tường của ngôi nhà" = "Vi\341\272\277t l\303\252n t\306\260\341\273\235ng c\341\273\247a ng\303\264i nh\303\240"

  2. #2
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: Unicode Text display wrong in Button

    My guess:

    The specific font being used in the button has a different character assignment than the ones used in the tools. Try changing the "font family" used in the button.

  3. #3
    Registered User
    Join Date
    Mar 2010
    Posts
    53

    Re: Unicode Text display wrong in Button

    Quote Originally Posted by danhicksbyron View Post
    My guess:

    The specific font being used in the button has a different character assignment than the ones used in the tools. Try changing the "font family" used in the button.
    Thank danhicksbyron !

    I tried to change font family used in the button (to Times New Roman, Arial, VNI-Times - which is used to write Vietnamese) but not succed.

    Is there a bug of QT symbian ?

  4. #4
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: Unicode Text display wrong in Button

    It probably is a bug, but hard to tell if it's in Symbian or Qt -- have you tried running the same code as a Windows application (not in the emulator)? Are you running your Symbian code in the emulator or on the hardware (or both)?

    Be aware that the fonts available on the emulator are likely different from those on the hardware, and both are relatively limited (from 3-5), so "Times New Roman" and Arial may map to the same font. (In particular, there aren't any serif fonts on many of the phones.)

    You should file a bug report: http://bugreports.qt.nokia.com/secure/Dashboard.jspa

    (And, by the way, there's nothing wrong with your English.)

  5. #5
    Registered User
    Join Date
    Mar 2010
    Posts
    53

    Re: Unicode Text display wrong in Button

    Quote Originally Posted by danhicksbyron View Post
    It probably is a bug, but hard to tell if it's in Symbian or Qt -- have you tried running the same code as a Windows application (not in the emulator)? Are you running your Symbian code in the emulator or on the hardware (or both)?

    Be aware that the fonts available on the emulator are likely different from those on the hardware, and both are relatively limited (from 3-5), so "Times New Roman" and Arial may map to the same font. (In particular, there aren't any serif fonts on many of the phones.)

    You should file a bug report: http://bugreports.qt.nokia.com/secure/Dashboard.jspa

    (And, by the way, there's nothing wrong with your English.)
    Hi danhicksbyron!

    I tried my code on the Symbian with both Emulator and Nokia E63 and are getting the same errors.
    In Window XP and Linux with the same code on Symbian, bug does not happen. All unicode text is display correct.

    Maybe I'll report this bug to the bugreports.qt.nokia.com.
    Once again, thank you very much !

  6. #6
    Registered User
    Join Date
    Mar 2010
    Posts
    53

    Re: Unicode Text display wrong in Button

    Hi all!

    My problem was solved by set styleSheet for Button :

    pushButton->setStyleSheet(QString::fromUtf8("font: 8pt \"MS Shell Dlg 2\";"));

Similar Threads

  1. Unicode Character Display in Mobile Phones
    By pijushcse in forum Series 40 & S60 Platform Feedback Archive
    Replies: 10
    Last Post: 2010-05-08, 15:52
  2. About how to Display text in different language.
    By manjul_saini in forum Mobile Java General
    Replies: 5
    Last Post: 2009-08-31, 13:58
  3. How to Display a long Text
    By metalcam in forum Mobile Java General
    Replies: 4
    Last Post: 2009-08-28, 14:31
  4. Need help to Wrap and Display long text
    By dc-huang in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-08-30, 13:47
  5. Read Chinese Text file and Display Chinese on Canvas Problem?
    By goeast in forum Mobile Java General
    Replies: 4
    Last Post: 2002-09-18, 03:28

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×