Hello,
I am trying to use the QWebView class to display html pages.
But I am unable to compile. I am using the following code:
I then added to "INCPATH " -I"n:\Qt\4.4.0\include\QtWebKit"Qt Code:
#include <QWebView> MainWindow::MainWindow() { QWebView *view = new QWebView(this); view->show(); Setup(this); }To copy to clipboard, switch view to plain text mode
and to the lib: -QtWebKit4
But i keep getting the following error:
Any help would be appriciated.release/mainwindow.o(.text+0x34c4):mainwindow.cpp: undefined reference to `_imp_
__ZN8QWebViewC1EP7QWidget'
release/mainwindow.o(.text+0x3527):mainwindow.cpp: undefined reference to `_imp_
__ZN8QWebView4loadERK4QUrl'
release/mainwindow.o(.text+0x36f4):mainwindow.cpp: undefined reference to `_imp_
__ZN8QWebViewC1EP7QWidget'
release/mainwindow.o(.text+0x3757):mainwindow.cpp: undefined reference to `_imp_
__ZN8QWebView4loadERK4QUrl'
Thanks in advance.
-xtreme
Bookmarks