bonjour,
je n'arrive pas a comprendre pourquoi ma comparaison de qstring ne marche pas...
si quelqu'un a une idee svp ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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"); }
merci d'avance ;-)
Partager