[Qt-interest] View UTF-8 text by QGraphicsTextItem
Bart van Deenen
bart.vandeenen at gmail.com
Sun Mar 7 16:05:20 CET 2010
I retract my first statement. I don't know why that doesn't
work, but I tested this little program, and it works (Linux).
#include <QApplication>
#include <QDebug>
#include <QMessageBox>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QString s(QString::fromUtf8("قع إخباري مرتبط بقناة
العربية يقدم على مدار الساعة الجديد في عالم السياسة والرياضة
والمجتمع م"));
QMessageBox msgBox;
msgBox.setText(s);
msgBox.exec();
return a.exec();
}
More information about the Qt-interest-old
mailing list