The documentation (in PyQt at least) for QWebView
says: 'The QWebView class provides a widget that is used to view and edit web documents', whereas QWebPage
says: 'The QWebPage class provides an object to view and edit web documents'. Given that these effectively mean the same thing:
- Is there a historical reason why these 2 classes evolved?
- Is one any better to use than the other in any particular circumstance?
(This stems from the fact the I'm using a javascript library embedded within a PyQt application; I'm currently using QWebView
, but only QWebPage
has a method for catching javascript errors, so was considering whether it was worth translating my code to subclass QwebPage
instead)