Unsolved How conver RTF to HTML
-
Hi!
How conver RTF to HTML? -
-
Maybe you can get an example based on this code:
QString file = QFileDialog::getOpenFileName(0, "Document RTF, "", "*.rtf"); if(!file.isEmpty()) { QFile sFile(file); if(sFile.open(QFile::ReadOnly | QFile::Text)){ QTextStream in(&sFile); QString text = in.readAll(); sFile.close(); //QTextDocument textDocument; ui->ResumeHHTextEdit->setHtml(text); qDebug()<<text; } }