[Qt-interest] Fwd: Storing the xml data..

Yuvaraj R yuvaraj at ongobiz.com
Tue Jun 16 17:38:32 CEST 2009


Hi
still i amstruggling with this issue
*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/96fcd859/attachment.html 


More information about the Qt-interest-old mailing list