Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problem in displaying local laguage QLabel

Problem in displaying local laguage QLabel

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 503 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vsk.manikandan
    wrote on last edited by
    #1

    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=pirai

    thanks in Advance...

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved