![]() |
QWebView: error: undefined reference to ...
Hi!
I just added a QWebView widget to a QTabWidget. Now when I compile the project, I hit the following error. Removing the QWebView removes the error. The only property I have set on the QWebView is the 'url' property which points to a file in my Documents folder: 'file:///C:/Users/...' Code:
debug/mainwindow.o:mainwindow.cpp:(.text$_ZN13Ui_MainWindow7setupUiEP11QMainWindow[Ui_MainWindow::setupUi:-1: error: undefined reference to `_imp___ZN8QWebViewC1EP7QWidget' Actually, the fact that I placed it in the QTabWidget doesn't seem to matter as I get the same error even if I place it on the 'main' window... |
Re: QWebView: error: undefined reference to ...
Ok, found it. I needed to add webkit to the .pro file. I thought it would be added automatically by Qt Creator. See http://doc.trolltech.com/4.6/qtwebkit.html.
|
All times are GMT. The time now is 08:27. |
vBulletin® Version 3.8.8