Problem in displaying local laguage QLabel
-
This program works fine, if i copy a string suppose in tamil , also i can able to display by the following code
ui->label->setText(QString::fromUtf8("தருமபுரி"));
but the problem is if i stored same string into a file i cannot able to display it show like some thing like ASCII characters , becoz my application will loads from various location || i should read value from that particular file. also that string not constant value,
please help me.
QSettings settings("/opt/etc/apprc",QSettings::NativeFormat);
QString str = settings.value("loc").toString().simplified()
ui->label->setFont((QString::fromUtf8(str)));in apprc content is
[General]
loc=தருமபுரி
ver=2.3.25
name=piraithanks in Advance...