Bonjour,
J'ai un petit probleme avec qt,
je voudrais faire un truc simple, c'est faire un get et je voudrais récuperer ce qu'il me renvoit en retour... en fait pour l'instant je fais ca:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
 
//initialise mon qhttp
QHttp http1(QString::fromStdString("http://monserveur.com"));
 
//fais le get
string url = "?param1=1&param2=2";
http1.get(QString::fromStdString(url));
 
//pas trop compris mais je fais ca...
//D'ailleur en debug, je ne rentre jamais dans la fonction finish_download
QObject::connect(&http1,SIGNAL(requestFinished(int, bool)),(QObject*)this,SLOT(finish_dowload(int ,bool)));
mon script me renvoit normalement:
<answer id="0" message="mon "petit" message" temps_script="0.008"/>
et c'est ca que j'aimerais récuperer...

Mais comment faire?

Merci beaucoup