Hi all,
I have a problem displaying Khmer Unicode Character on QTextEdit. While other Khmer Unicode Character shown correctly in QTextEdit, this special case as shown in the figure below, did not show as expected. The same text in Ms Word show correctly what it is expected.
I typed the text directly into QTextEdit field.
Here is my code:
#include <QApplication>
#include <QTextEdit>
int main(int argc, char* argv[])
{
font.setPointSize(18);
txt.setFont(font);
txt.show();
return app.exec();
}
#include <QApplication>
#include <QTextEdit>
int main(int argc, char* argv[])
{
QApplication app(argc, argv);
QTextEdit txt;
QFont font;
font.setPointSize(18);
txt.setFont(font);
txt.show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
Thanks for any kind reply.
Bookmarks