PDA

View Full Version : Porting Qt WebKit based project to Qt 5.7 (Qt WebEngine)



Ginsengelf
30th November 2016, 13:20
Hi, I am currently porting an existing program from Qt4 to Qt5.7.
I have used QWebPage in Qt4 and the porting guide (http://doc.qt.io/qt-5/qtwebenginewidgets-qtwebkitportingguide.html) said that I should use QWebEnginePage in Qt 5.7.
There are some methods for which I haven't found a replacement in Qt5 yet:
- QWebPage::setPreferredContentsSize() (http://doc.qt.io/qt-4.8/qwebpage.html#setPreferredContentsSize)
- QWebFrame::setTextSizeMultiplier() (http://doc.qt.io/qt-4.8/qwebframe.html#setTextSizeMultiplier)
- QWebFrame::render() (http://doc.qt.io/qt-4.8/qwebframe.html#render)

For QWebFrame::render() I could probably use QWebEngineView::render(), or is there a way where I don't have to create a QWebEngineView Object?
What about the other two methods?

Ginsengelf