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. How to integrate a QT project with an existing C++ project while enabling webkit?
Forum Updated to NodeBB v4.3 + New Features

How to integrate a QT project with an existing C++ project while enabling webkit?

Scheduled Pinned Locked Moved General and Desktop
webkit webkitwi
4 Posts 3 Posters 1.4k Views 2 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
    alanxu
    wrote on last edited by alanxu
    #1

    Hi ,I dropped into a big problem.
    I wanted to add webview function into an existing project(Bitcoin),which is a integration of an independant C++ project and a dependant qt project.
    Then an error comes out:
    undefined reference to `QWebView::QWebView(QWidget*)'
    The solution found is clear: add one line in the .pro document:QT+=webkit(my version is 4.6,and webkitwidgets is for 5)
    But after adding the line in, the error is still there.
    I searched in Google and found no helpful solution.
    The point is : this integrated project is compiled under a Makefile.am instead of the autogenerated makefile file.QT is used as a library in the project. I don't know how to modify the makefile.am file to kill the error.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mchinand
      wrote on last edited by
      #2

      According to the QWebView documentation, the statement in your .pro file should be

      QT += webkitwidgets
      
      A 1 Reply Last reply
      0
      • M mchinand

        According to the QWebView documentation, the statement in your .pro file should be

        QT += webkitwidgets
        
        A Offline
        A Offline
        alanxu
        wrote on last edited by
        #3

        @mchinand already tried.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi and welcome to devnet,

          Since it uses it's own Makefile, you need to add the include and link statement missing. Have a look when the rest of Qt is included/linked, then add the webkit related parts.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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