Results 1 to 2 of 2

Thread: Escape Sequences in Qt

  1. #1
    Join Date
    Mar 2007
    Posts
    1
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Escape Sequences in Qt

    Hi Everyone!

    I am working with Qt4.2 on Ubuntu Dapper - actually I am trying to give a Groupbox the String "Blabla in m³".

    I tried with typing in the String as seen above and also with the Unicode escape sequence \u00b3.
    Neither works.. always in my compiled program the Groupbox shows "Blabla in mij".

    Any Ideas how to get rid of that Ä here? I tried everything that came in my mind (including QString->remove) but nothing worked..

    Thx in advance!!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Escape Sequences in Qt

    Try QString::fromUtf8("Blabla in m\xc2\xb3");

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

    Kofie (23rd March 2007)

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.