c++ - Best way to parse HTML in Qt? -


How do I completely parse the "html" properties on a page with "H" HAL tags, Qt I do not know in terms of performance that I will use builtin QtWebKit, but I think that in the

It should catch all "bad" HTMLs something like this:

  class MyPageLoader: public QObject {Q_OBJECT public: MyPageLoader (); Zero load page (constrained & amp;;); Public slot: Answer to zero (boole); Private: QWebView * m_view; }; MyPageLoader :: MyPageLoader () {m_view = New QWebView (); Connect (m_view, signal (loadfinished (boole)), this, slot (northfin (boole))); } Zero MyPageLoader :: loadPage (const qurl and url) {m_view-> Load (URL); } Zero MyPageLoader :: replyFinished (bool ok) {QWebElementCollection elements = m_view-> Page () - & gt; Mainframe () - & gt; FindAllElements ("a"); Foreign Currency (QWebElement E, Element) {// Process Element}}  

to use the class

  MyPageLoader loader; Loader.loadPage ("http://www.example.com")  

and then whatever you prefer with the archive.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -