use nextSibling();
here an example from the docs:
Qt Code:
return; if (!doc.setContent(&file)) { file.close(); return; } file.close(); while(!n.isNull()) { if(!e.isNull()) { cout << qPrintable(e.text()) << endl; } n = n.nextSibling(); }To copy to clipboard, switch view to plain text mode
Bookmarks