[Qt-interest] QString and Unicode literals
Robert Caldecott
robert.caldecott at gmail.com
Fri May 29 12:59:08 CEST 2009
Are Unicode literals meant to work with a QString? For example, I
would expect the following to set the string to "Test" followed by the
Euro character:
QString str("Test\u20AC");
But it doesn't work so instead I end up doing:
QString str("Test");
test += QChar(0x20AC);
Is this a bug or is this behaviour by design? Is there another way to
embed Unicode literals in a QString?
More information about the Qt-interest-old
mailing list