Results 1 to 13 of 13

Thread: Unicode strings int Qt 4.2.1

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2007
    Posts
    81
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    17
    Thanked 3 Times in 3 Posts

    Default Re: Unicode strings int Qt 4.2.1

    no dice so far, and I've tried a bunch of different file formats.....is this a compiler thing maybe?

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 541 Times in 521 Posts

    Default Re: Unicode strings int Qt 4.2.1

    Qt Code:
    1. QChar chr[] = {0X03c3};
    2. QString xxx = QString::fromRawData(chr, 1);
    To copy to clipboard, switch view to plain text mode 

    EDIT: don't forget to set the unicode codec in main.cpp.

    regards
    Last edited by marcel; 6th August 2007 at 15:42.

  3. The following user says thank you to marcel for this useful post:

    JonathanForQT4 (6th August 2007)

  4. #3
    Join Date
    Jan 2007
    Posts
    81
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    17
    Thanked 3 Times in 3 Posts

    Default Re: Unicode strings int Qt 4.2.1

    working like a charm, many thanks!

  5. #4
    Join Date
    Dec 2011
    Posts
    33
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    56

    Default Re: Unicode strings int Qt 4.2.1

    I use Eclipse IDE for C/C++ & QT integration plug-in , but I'm not write Unicode ?
    How to resolve ? Thank every body.
    Example: I write : "Chà o tất cả các bạn!" but It show in program: "Chà o t?t c? các b?n"
    Nguyễn Lưu Vũ - Http://nguyenluuvu.com

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.