I have a QTextBrowser
in which I display the output contents of an external binary using QProcess
in Linux. All is GOOD! But most of the contents are just boxes, so now it's the character encoding UTF-8 is missing and I need to tell this to the QTextBrowser
. Is there any way for that?
The code:
....
processRAM = new QProcess();
processRAM->start("memtester", QStringList() << "1" << "1");
.....
connect(processRAM, SIGNAL(readyRead()),this,SLOT(displayRAMTestOutput()));
......
void MainWindow::displayRAMTestOutput()
{
textBrowserData->append(Qtring::fromUtf8(processRAM->readAllStandardOutput())));
}
I added the char encoding UTF-8 and still I see only boxes. What am I missing here?