source:
trunk/doc/src/snippets/qxmlquery/bindingExample.cpp@
348
Last change on this file since 348 was 2, checked in by , 16 years ago | |
---|---|
File size: 248 bytes |
Line | |
---|---|
1 | //! [0] |
2 | QBuffer device; |
3 | device.setData(myQString.toUtf8()); |
4 | device.open(QIODevice::ReadOnly); |
5 | |
6 | QXmlQuery query; |
7 | query.setQuery("doc($inputDocument)/query[theDocument]"); |
8 | query.bindVariable("inputDocument", &device); |
9 | //! [0] |
Note:
See TracBrowser
for help on using the repository browser.