The Unicode code points of α, β, and γ are U+03B1, U+03B2, and U+03B3, respectively. You could initialize QChars with with QChar(0x3b1), QChar(0x3b2), and QChar(0x3b3).
However, you can probably just use the characters in source code directly, e.g. with
label->setText("Some text containing α, β, and γ");
label->setText("Some text containing α, β, and γ");
To copy to clipboard, switch view to plain text mode
in Qt 5, provided your source file is encoded in UTF-8. If you use Qt 4 and your source file is encoded in UTF-8, you can do
label
->setText
(QString::fromUtf8("Some text containing α, β, and γ"));
label->setText(QString::fromUtf8("Some text containing α, β, and γ"));
To copy to clipboard, switch view to plain text mode
instead.
Bookmarks