QWebElement alternative for QWebEngine

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.

Did you like this?
Tip admin with Cryptocurrency

Donate Bitcoin to admin

Scan to Donate Bitcoin to admin
Scan the QR code or copy the address below into your wallet to send some bitcoin:

Donate Bitcoin Cash to admin

Scan to Donate Bitcoin Cash to admin
Scan the QR code or copy the address below into your wallet to send bitcoin:

Donate Ethereum to admin

Scan to Donate Ethereum to admin
Scan the QR code or copy the address below into your wallet to send some Ether:

Donate Litecoin to admin

Scan to Donate Litecoin to admin
Scan the QR code or copy the address below into your wallet to send some Litecoin:

Donate Monero to admin

Scan to Donate Monero to admin
Scan the QR code or copy the address below into your wallet to send some Monero:

Donate ZCash to admin

Scan to Donate ZCash to admin
Scan the QR code or copy the address below into your wallet to send some ZCash:
Posted in

Comments are closed, but trackbacks and pingbacks are open.