Results 1 to 16 of 16

Thread: unable to have greek characters appear in a text Label

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: unable to have greek characters appear in a text Label

    Just use QString::fromLocal8Bit() when setting the characters.
    Qt Code:
    1. greekEdit->setText(QString::fromLocal8Bit(charArray2greek[1]));
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Jul 2006
    Posts
    79
    Qt products
    Qt3 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: unable to have greek characters appear in a text Label

    this is interesting: i just realised this is happening.
    i took this directly from within the designer window.. it appears that if i close the designer and restart it the greek characters don't even appear in the .ui.h file!
    i asure you when i type the characters they appear fine... but for some unknown reason when i restarted the pc just now everything that i have typed in greek appears like ??? (exception to this is the text on the buttons which when i open a project in the designer it appears fine)

    charGRArray2a="????2";
    charGRArray2A="???2";
    charGRArray3a="????3?";
    charGRArray3A="???3?";
    charGRArray4a="?????4";
    charGRArray4A="???4";
    charGRArray5a="???5";
    charGRArray5A="???5";
    charGRArray6a="????6";
    charGRArray6A="???6";
    charGRArray7a="????7$";
    charGRArray7A="???7$";
    charGRArray8a="????8";
    charGRArray8A="???8";
    charGRArray9a="????9";
    charGRArray9A="???9";

    just to make sure:
    i have copied all the fonts i found in my ntfs (winXP) partition and installed them both in administrator mode and in personal mode... i mean i think and i hope and i believe i have adequate number of fonts...! or don't i?
    nass

Similar Threads

  1. Unhandled exception in qatomic
    By NewGuy in forum Qt Programming
    Replies: 14
    Last Post: 23rd July 2013, 09:49

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.