Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QWebView mac - does not compute ..
Qt 6.11 is out! See what's new in the release blog

QWebView mac - does not compute ..

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 3.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Parintachin
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DenisKormalev
      wrote on last edited by
      #2

      Looks like you've forgot to add
      @
      QT += webkit
      @
      to your .pro file

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Parintachin
        wrote on last edited by
        #3

        Oki; that works - thanks (o:

        Wasn't aware that I needed to manually add anything to the project file ..

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved