Solved Use QWebView in Qt 5.7
-
Hi,
I'm trying to debug an old application written in Qt 5.2 in my Qt 5.7. I know that qtwebkit is now obsolete and replaced by qtwebengine. Anyway I'd like to be able to run this application without porting it to Qt 5.7.
I installed libQt5WebKit5-dev and copied modules and headers of QtWebKit and QtWebKitWidgets in my Qt 5.7.
Now I get this error: /usr/lib/x86_64-linux-gnu/libQt5WebKit.so:-1: error: undefined reference to `QWindowSystemInterface::registerTouchDevice(QTouchDevice*)'Is it possible to solve it? Or I have no other choice than porting my application to Qt 5.7?
Thank you -
Hello,
You can :
- install QtWebKit from community release using Qt 5.7, but normally without changing your code ;
- Qt 5.2 installed next to Qt 5.7 Maintenance Tools of Qt.
Otherwise you can read this article : https://wiki.qt.io/Porting_from_QtWebKit_to_QtWebEngine.
Bye & good luck.
Charlie.
-
You can build up-to-date QtWebKit from https://github.com/annulen/webkit/releases/tag/qtwebkit-tp4 using instruction https://github.com/annulen/webkit/wiki/Building-QtWebKit-on-Linux
See http://qtwebkit.blogspot.com/2016/08/qtwebkit-im-back.html for more details