Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions
Accessing text between two QWebElement objects in DOM
silicomancer last edited by
I am traversing a DOM using Qt's WebKit classes. Please have a look on the following pseudo HTML:
I can easily find the anchors using findAll(). However I also need to get the text before the elements ("111" and "222"). I tried to use previousSibling() but of course that gives me the <br> element since the "111" and "222" texts are no elements.
I found a function to access text within an element, but how can I access between the <br> and the <a> elements?
brugge last edited by