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. QtWebEngineWidgets ERROR LNK2019
QtWS25 Last Chance

QtWebEngineWidgets ERROR LNK2019

Scheduled Pinned Locked Moved Solved General and Desktop
qtwebenginevisual studiolnk2019qtcreator4.3.1
3 Posts 2 Posters 2.5k Views
  • 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.
  • M Offline
    M Offline
    madasionka
    wrote on 3 Aug 2017, 11:23 last edited by madasionka 8 Mar 2017, 11:33
    #1

    Hi, I'm new to Qt and for quite some time I've been trying to install Qt Creator so that I could use QtWebEngine. I'm working on a Windows 10 and have Visual Studio 2015 (with Update 3) installed. I downloaded Qt Creator 4.3.1, I have a blank template project that compiles and runs just fine. when I add

    QT       += core gui webenginewidgets
    

    in .pro file it still builds and runs but when I add

    #include <QtWebEngineWidgets/QtWebEngineWidgets>
    

    in main.cpp I get an error :

    main.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl QQmlDebuggingEnabler::QQmlDebuggingEnabler(bool)" (__imp_??0QQmlDebuggingEnabler@@QEAA@_N@Z) referenced in function "void __cdecl `dynamic initializer for 'qQmlEnableDebuggingHelper''(void)" (??__EqQmlEnableDebuggingHelper@@YAXXZ)
    

    I'm using
    Microsoft Visual; c++ compiler 14.0 (amd64)
    compiler to complie my code.

    Any hints how to run Qt with QtWebEngine much appreciated.

    EDIT:
    When I add

    #include <QtWebEngineWidgets>
    

    or

    #include <QWebEngineSettings>
    

    instead of

    #include <QtWebEngineWidgets/QtWebEngineWidgets>
    

    I get a different error :

     error: C1083: Cannot open include file: 'QWebEngineSettings': No such file or directory
    
    1 Reply Last reply
    0
    • M Offline
      M Offline
      madasionka
      wrote on 7 Aug 2017, 10:38 last edited by
      #3

      Hi,

      Thanks for replying, I solved my issue. I was missing some "#include" in different files.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 3 Aug 2017, 20:29 last edited by
        #2

        Hi and welcome to devnet,

        What version of Qt are you currently using ?

        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
        • M Offline
          M Offline
          madasionka
          wrote on 7 Aug 2017, 10:38 last edited by
          #3

          Hi,

          Thanks for replying, I solved my issue. I was missing some "#include" in different files.

          1 Reply Last reply
          0

          1/3

          3 Aug 2017, 11:23

          • Login

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