Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.9.3
-
None
-
Windows 10 Home 64bit. Qt 5.9.3. VS v2017
Description
QStringLiteral works well on standard ASCII characters but fail on unicode (at least in my case). I have in my code copyright sign, mean: ©, and when I don't use QStringLiteral it works well. But when I use it it produce artefact. This effect was showed on the picture atached.
Example code is extremally simple:
// QMessageBox::about(this, tr("About"), QString("%1 %2\n\n©%4 by %3")
QMessageBox::about(this, tr("About"), QString(QStringLiteral("%1 %2\n\n©%4 by %3"))
.arg(QCoreApplication::applicationName())
.arg(QCoreApplication::applicationVersion())
.arg(QCoreApplication::organizationName())
.arg(gCopyrightYears));
Copy this to some dumb project and you will see something like my screenshot (attached).
Try uncomment first line (and comment the second one) and you see correct copyright sign without artefact.