QTextEdit edt fichier type rtf
Bonjour,
Je cherche à charger dans un QTextEdit un fichier au format rtf comme ca.
Code:
1 2 3 4 5
|
QFile file(my_fichier.rtf);
if (file.open(QFile::ReadOnly | QFile::Text)) {
Editor->setPlainText(file.readAll());
} |
J'ai mis 'acceptRichText' à true mais j'obtient ca
Code:
1 2 3 4 5 6 7 8 9
|
\cf1\b\i\f0\par
11-03\cf0 -2008 \b0\i0 : \cf3\b New: \cf0\b0 A new command, SET_BEAM_PHASE_ERROR has been added (See Help File) .(Giulia Bellodi, CERN)\par
\cf1\b\i\par
11-03\cf0 -2008 \b0\i0 : \cf3\b New: \cf0\b0 A new command, TWOTERMS, allows to select the longitudianl profil in RFQ (See Help file).\par
\cf1\b\i\par
14-02\cf0 -2008 \b0\i0 : \cf2\b Fixed Bug\cf0\b0 , the NCELLS element didn't work in Partran when these optional parameters was not set. (Giulia Bellodi, CERN)\f1\par
\cf1\b\i\f0\par
13-02\cf0 -2008 \b0\i0 : \cf3\b New: \cf0\b0 In multiparticle box, the number of space-charge calculation per meter or beta_Lambda has been added, previously it was beta_Lambda divided by 2, but in few case that was too low. The command |
Quelles options ai-je oublié
Merci d'avance