[Solved]Qt5 QtWebview
-
I have a compile problem when I use QWebview. However, I have already add these library below
QT += core gui
webkit
network
scriptThe problem is still there,
D:\Project\maserati\OneChecker-build-Desktop_Qt_5_0_1_MinGW_32bit-Debug\OneChecker\debug\accessdlg.o:-1: In functionZN12Ui_AccessDlg7setupUiEP7QDialog': D:\Project\maserati\OneChecker-build-Desktop_Qt_5_0_1_MinGW_32bit-Debug\OneChecker\ui_accessdlg.h:580: error: undefined reference to
_imp___ZN8QWebViewC1EP7QWidget'
D:\Project\maserati\OneChecker-build-Desktop_Qt_5_0_1_MinGW_32bit-Debug\OneChecker\ui_accessdlg.h:583: error: undefined reference to `_imp___ZN8QWebView6setUrlERK4QUrl'
collect2.exe:-1: error: error: ld returned 1 exit status -
QWebView is in the webkitwidgets module for Qt 5.0... Also for your first error you must add widgets module to your PRO file for your QDialog class... So in your PRO file you should have:
@
QT += core
gui
widgets
webkit
webkitwidgets
network
script
@