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. Missing native special characters in QTextBrowser

Missing native special characters in QTextBrowser

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 302 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.
  • M Offline
    M Offline
    michelson
    wrote on last edited by
    #1

    Hello,

    I have a problem with getting accented characters right in QTextBrowser. I connect signal which sends QString and slot which appends it to QTextBrowser like that:

    emit errorString_changed(tr(qPrintable(QString("Pobrano wersję firmware'u: %1").arg(QString::fromLocal8Bit(frmw)))));
    //frmw is QByteArray which I receive from a device
    
    connect(rej, SIGNAL(errorString_changed(QString)), ui->logTextBrowser, SLOT(append(QString)));
    

    The letter "ę" is printed as a square with small question mark if you know what I mean.
    I guess this is come kind of codec thing, but never worked woth those. I didnt find any QTextBrowser::setCodec() or something similar. How can I fix this?

    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