Results 1 to 2 of 2

Thread: Disable uic translation from utf8

  1. #1

    Default Disable uic translation from utf8

    Hi,

    I want to prevent uic from generating code like this:
    Qt Code:
    1. myPushButton->setText(QString::fromUtf8("\327\220\327\240\327\246\327\231\327\247\327\234\327\225\327\244\327\223\327\231\327\224"));
    To copy to clipboard, switch view to plain text mode 

    This is happen when i give, for example, an Hebrew label to a button. the characters are translated to this \XXX symbols. i want uic to generate the characters as i typed them in the QT designer/creator, or more precise, as they are in the .ui file.

    what should i change in the uic code to disable this translation ?

    10x in advance,
    Vertilka

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Disable uic translation from utf8

    I think QtDesigner does this by design to ensure that the source code only ever contains ascii text.

Tags for this Thread

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.