Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. How to resolve LNK2019 error obtained after initializing the web engine and writing code to load a web page?

How to resolve LNK2019 error obtained after initializing the web engine and writing code to load a web page?

Scheduled Pinned Locked Moved Unsolved QtWebEngine
documentationwebengineviewlnk2019qtquick
1 Posts 1 Posters 332 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.
  • G Offline
    G Offline
    gouneken
    wrote on 3 Apr 2022, 19:51 last edited by
    #1

    Good evening to the whole community, I am working on a search engine project for android phone. In order to orient myself, I tried the code present on the official documentation https://doc.qt.io/qt-6/qml-qtwebengine-webengineview.html#details to initialize a web engine and load a web page. But when I run I get the LNK2019 error followed inevitably by the LNK1120 error. Firstly, I looked at the documentation code for the main.cpp and main.qml files and everything was normal. Then I searched the internet for how to resolve this error, and I was asked to use vcpkg, but I don't really see the importance. I don't know if this is a documentation code error or something else. I therefore ask for your help for those who may have already dealt with this.
    The error text is the follow:
    LNK2019:external symbol not resolved "_declspec(dllimport) void_cdecl -----QtWebEngineQuick::initialize(void)"(imp?
    initialize@QtWebEngineQuick@@YAXXZ)r,f,renc, in the main function
    main.obj
    I look forward to your answers. Thank you!

    1 Reply Last reply
    0

    1/1

    3 Apr 2022, 19:51

    • Login

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