[Interest] Why there is no QChar::toLocal8Bit()?

Prav pr12og2 at programist.ru
Sat Apr 9 18:45:52 CEST 2016


Hi, Thiago Macieira.

> It's intentional because it's superfluous. You can get the same by running

>         QString(the_qchar).toLocal8Bit();

> converting to a multibyte 8-bit representation is a string operation anyway.
Multibyte?! I thought it should be like

char QChar::toLocal8Bit() const;

No?




More information about the Interest mailing list