maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   QWebView: error: undefined reference to ... (https://talk.maemo.org/showthread.php?t=49835)

magnuslu 2010-04-12 15:28

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'
Stricty speaking, this is not a Maemo issue as I have the issue directly in Qt Creator o Windows Vista, but maybe someone here has some suggestions?

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...

magnuslu 2010-04-13 02:32

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