Souci de comparaison de QString
bonjour,
je n'arrive pas a comprendre pourquoi ma comparaison de qstring ne marche pas...
Code:
1 2 3 4 5 6 7 8 9 10
|
QFile file("fichier.txt") ;
file.open(QIODevice::ReadOnly) ;
QTextStream streamtext(&file) ;
QString textqstr = streamtext.readAll() ;
QMessageBox::information(this, "Fin de téléchargement", textqstr);
QString ver = "2.5";
if(textqstr.compare(ver) == 0) {
QMessageBox::information(this, "Fin de téléchargement", "vous avez la derniere version");
} |
si quelqu'un a une idee svp ?
merci d'avance ;-)