Hi all, I'm really new with this Qt thing... And I'm trying to do some stuff that involve http comm... now.. In Java Micro Edition (J2ME) it's really easy to request some http connection with an url having a php variable and then the server responded with that same variable I just sent. How should I do that here in Qt ?
I've only managed to code this (even tough I haven't test it...yet)
If I want to get 'aaa' back from the server and then show it in a lineEdit object... what's missing? probably everything... thanks in advance...Code:void MainWindow::on_pushButton_clicked() { ui->lineEdit->setText("Request Sended"); QUrl url; QNetworkRequest qNetReq; url.setUrl("http://somedomain.com/script.php?v=aaa"); qNetReq.setUrl(url); }

Reply With Quote


