[Qt-interest] Storing the xml data..
Yuvaraj R
yuvaraj at ongobiz.com
Tue Jun 16 09:32:42 CEST 2009
Hi All
I am hiting the server using the following code..
*void Widget::imageGet( const QString url ) *
*{*
**
*QUrl _url = QUrl(url);*
*buffer->open(QIODevice::ReadWrite);*
*http->setHost(_url.host());*
*http_id = http->get(_url.path(), buffer);*
*}*
* *
*void Widget::request(int id, bool error)*
*{*
**
*if(error)*
*{*
*QMessageBox::information(0,"Error",QString("error"));*
* return;*
*}*
*if(http_id == id && http->lastResponse().statusCode() == 200)*
*{*
*QString xmldata;*
*QByteArray data = buffer->data();*
*xmldata.contains(data);*
**
**
**
*}*
*buffer->close();*
*}*
*}*
Is it correct way to store the xml data .
Previously i used to store the image by
*QPixmap image;*
*image.load(loadFromData(data);*
*How do store the xml data , if data is QString format*
**
**
*please help me*
**
**
*Thanks*
**
*Yuvaraj R*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090616/ba06b265/attachment.html
More information about the Qt-interest-old
mailing list