The deprecation of QWebView in Qt5.7 seems a sign of the Qt team being compromised by M$ finally. However this creates many troubles for programmers porting QWebView to QWebEngine. Although Qt website provides a guide for porting from Qt WebKit to Qt WebEngine. Things are not that simple. Programmers using QWebView are not just creating a silly browser. Typically, they use QWebView to access the elements on html pages. However this seems an impossible mission in QWebEngine because the QWebElement class which is the main class to get the elements on the web page is deprecated. And there is no alternatives or equivalent of QWebElement in QWebEngine. People wanting to manipulate web content have to resort to javascript. If you need to get the text between html tags or attributes of a dom element, you can refer to this post.
Previous Post: what status code is returned for php error?
Next Post: The working directory of Qt projects
Comments are closed, but trackbacks and pingbacks are open.