Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Error In Webview
Qt 6.12 LTS is out! See what's new in the release blog

Error In Webview

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 6.4k 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.
  • A Offline
    A Offline
    absfrm
    wrote on last edited by
    #1

    Hi,
    I can't use Webview !!
    @
    These are my errors :
    E:\Qt....\ui_mainwindow.h:47: error: undefined reference to _imp___ZN8QWebViewC1EP7QWidget' E:\Qt\...\.\ui_mainwindow.h:50: error: undefined reference to _imp___ZN8QWebView6setUrlERK4QUrl'
    @
    Help me please!
    thanks

    If You Want You Can!

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      seems that you are missing some library, in this case, QtWebKit library.

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • A Offline
        A Offline
        absfrm
        wrote on last edited by
        #3

        Oh.maybe
        but i opened qt sample projects =>Webkit=>HTML Previewer , and i started it without any problem!!

        If You Want You Can!

        1 Reply Last reply
        0
        • G Offline
          G Offline
          giesbert
          wrote on last edited by
          #4

          Then have a look at the pro-file.
          The one of the example will have something like

          @
          Qt += core gui webkit
          @

          and yours will not.

          Nokia Certified Qt Specialist.
          Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

          1 Reply Last reply
          0
          • A Offline
            A Offline
            absfrm
            wrote on last edited by
            #5

            oh,right
            that's a helpful answer
            so thanks sir.

            If You Want You Can!

            1 Reply Last reply
            0
            • T Offline
              T Offline
              theCyclist
              wrote on last edited by
              #6

              Just in case anyone else finds this thread having had the above error, now [I am assuming for qt5 here] the correct entry in the .pro file should be:

              QT+=webkitwidgets

              Share and enjoy.

              JT

              Be open minded but don't lean forward or your brain my fall out.

              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
              • Unsolved