How to get the contentSize of a web page in Qt5.4-QtWebEngine
问题 I'm using the new Qt5.4 with the module QtWebEngine and from what I see mainFrame() doesn't exists anymore. How to get the contentSize/size of the page and how to render it now? I tried with the setView and view but doesn't work. 回答1: Check if the QWebEnginePage::geometryChangeRequested signal does what you want. Also you display a QWebEnginePage by creating a QWebEngineView (it's a QWidget ) and calling QWebEngineView::setPage(yourPage) . 回答2: I couldn't find any native Qt method for that,