I need to show Unicode characters in a QLabel. This code works fine on Debian, but on Windows I just get a square.
FWIW, the browser does show this character when used in a webpage, and I can copy/paste it in Wordpad, so I guess it's not a font issue.
What am I missing?
#include <QtGui/QApplication>
#include <QLabel>
int main(int argc, char *argv[])
{
QLabel label
(QChar(10269));
// â (U+281D) is points 1,3,4,5 in Braille label.show();
return app.exec();
}
#include <QtGui/QApplication>
#include <QLabel>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QLabel label(QChar(10269)); // â (U+281D) is points 1,3,4,5 in Braille
label.show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks