QWebView mac - does not compute ..
-
Hey QT guys.
I'm trying to learn a few things about QT by slapping together a simple webbrowser using the widgets available. Running nto a spot of trouble, though ..
I'm using QT 4.7.1 and Creator 2.1RC on a mac.Slapping a QWebView on a form and trying to run a debug fails - I get the following error:
Running build steps for project Test2...
Configuration unchanged, skipping qmake step.
Starting: "/usr/bin/make" -w
make: Entering directory/Volumes/Stack/Users/larsgottlieb/Test2-build-desktop' g++ -headerpad_max_install_names -o Test2.app/Contents/MacOS/Test2 main.o mainwindow.o moc_mainwindow.o -F/Library/Frameworks -L/Library/Frameworks -framework QtGui -framework QtCore Undefined symbols: "QWebView::QWebView(QWidget*)", referenced from: Ui_MainWindow::setupUi(QMainWindow*) in mainwindow.o "QWebView::setUrl(QUrl const&)", referenced from: Ui_MainWindow::setupUi(QMainWindow*) in mainwindow.o ld: symbol(s) not found collect2: ld returned 1 exit status make: *** [Test2.app/Contents/MacOS/Test2] Error 1 make: Leaving directory
/Volumes/Stack/Users/larsgottlieb/Test2-build-desktop'
The process "/usr/bin/make" exited with code 2.
Error while building project Test2 (target: Desktop)
When executing build step 'Make'It appears to be trying to tell me that it doesn't understand what this 'QWebView' thingermedinger is, so I'm wondering if there's an include the project's missing, or there's still something awry with the setup; please advice.
-
Looks like you've forgot to add
@
QT += webkit
@
to your .pro file -
Oki; that works - thanks (o:
Wasn't aware that I needed to manually add anything to the project file ..