summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/qxmlquery/bindingExample.cpp
blob: 8ed9974af7248357c59ae3501f2def8d72b089aa (plain)
1
2
3
4
5
6
7
8
9
//! [0]
    QBuffer device;
    device.setData(myQString.toUtf8());
    device.open(QIODevice::ReadOnly);

    QXmlQuery query;
    query.setQuery("doc($inputDocument)/query[theDocument]");
    query.bindVariable("inputDocument", &device);
//! [0]