Logo Search packages:      
Sourcecode: qt4-x11 version File versions

src_xmlpatterns_api_qxmlresultitems.cpp

//! [0]
QXmlQuery query;
query.setQuery("<e/>, 1, 'two'");
QXmlResultItems result;

if (query.isValid()) {
    query.evaluateTo(&result);
    QXmlItem item(result.next());
    while (!item.isNull()) {
        // use item
        item = result.next();
    }
    if (result.hasError())
        /* Runtime error! */;
}
//! [0]

Generated by  Doxygen 1.6.0   Back to index