Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt5, Windows 10: german Umlauten not correctly displayed
Forum Updated to NodeBB v4.3 + New Features

Qt5, Windows 10: german Umlauten not correctly displayed

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
1 Posts 1 Posters 469 Views
  • 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.
  • A Offline
    A Offline
    alainstgt
    wrote on last edited by
    #1

    Porting from Qt 4.8 to 5.7 has raised a new issue: Umlauten inside a QString containing HTML code are not displayed correctly in a QLabel.
    Following a code fragment;

    mText = QString("<html><head>\
     <style type=\"text/css\">\
      .on{font: %1px Lucida Console; color: #FFFFFF;}\
      .off{font: %1px Lucida Console; color: #707070;}\
      .on2{font: %2 %1px Lucida Console; color: #FFFFFF;}\
      .off2{font: %2 %1px Lucida Console; color: #707070;}\
     </style>\
     </head>\
     <body>").arg(mLetterSize).arg(mLetterSize < 14 ? "" : "bold");
    mText += QString("<DIV style= \"line-height: %1px;\">").arg(mLineHeight);
    //  E S K I S T A F Ü N F
    mText += "<SPAN class=\"on\">E S </SPAN>";
    mText += "<SPAN class=\"off\">K </SPAN>";
    mText += "<SPAN class=\"on\">I S T </SPAN>";
    mText += "<SPAN class=\"off\">A </SPAN>";
    mText += show_fuenf ? "<SPAN class=\"on\">F Ü N F</SPAN>" : "<SPAN class=\"off\">F Ü N F</SPAN>";
    mText += "<br>";
    
    

    Any idea how to solve the issue?

    Thank you for your valuable time.
    Alain

    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