vendredi 14 août 2015

1.Project ERROR: Unknown module(s) in QT: webkitwidgets

Well, I was trying to use QWebView. As I learned from the Internet I should and this line webkitwidgets in .pro file after QT +=, so I added it and get this error: Project ERROR: Unknown module(s) in QT: webkitwidgets

I know that a lot of people already asked about this error on this site and on the others and mostly answer was to install libqt5webkit5-dev using this command line: sudo apt-get install libqt5webkit5-dev. The problem is, that I am on Windows, not on Linux, so this cant be useful for me.

The weird thing is, that I have Qt5WebKitWidgets.dll and Qt5WebKit.dll in C:\Qt\Tools\QtCreator\bin, so I suppose, that I have everything I need to use QWebView and to add this line QT += webkitwidgets without getting any errors.

Also I learned, that WebKitWidgets is no longer supported after QT 5.0 and newer(or something like that), and I should use QtWebEngine, but I dont understand how to use it in Qt Widgets Application with QWebView.

So, what should I do?

Thanks for any responses.

Aucun commentaire:

Enregistrer un commentaire