//...
QApplication app(argc, argv);
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("windows-1252"));
QTextCodec::setCodecForLocale(QTextCodec::codecForName("windows-1252"));
//...
To copy to clipboard, switch view to plain text mode
Using this code I can display and 'e' with acute by calling
QMessageBox::about (this,"About",QString::fromLocal8Bit("\xe9"));
To copy to clipboard, switch view to plain text mode
but "\xe1" for an 'a' with acute won't work.
On Windows, I get a compiler warning, saying that "hex escape sequence out of range".
Any workarounds?
Bookmarks