How to insert specific symbols in qt widgets

character-encoding, qt, qt5, unicode

Solution

Just take any Unicode documentation and define required constants:

const QChar MathSymbolSquereRoot(0x221A);
const QChar MathSymbolPi(0x03A0);
const QChar MathSymbolDelta(0x0394);
const QChar MathSymbolSigma(0x03A3);

Remember that you have to use font which support those Unicode characters!

Problem

I want to make buttons with specific math symbols, like square root, delta, sigma, pi, etc. How to do this? I'm using Qt 5 and unicode. Thanks

Original source