Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. (Solved)QT 5.4 and MSVS 2013
QtWS25 Last Chance

(Solved)QT 5.4 and MSVS 2013

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 2 Posters 2.8k 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.
  • IamSumitI Offline
    IamSumitI Offline
    IamSumit
    wrote on last edited by
    #1

    Hi all,
    i am getting the following errors
    mainwindow.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl QWebEngineView::QWebEngineView(class QWidget *)" (_imp??0QWebEngineView@@QEAA@PEAVQWidget@@@Z) referenced in function "public: __cdecl CMainWindow::CMainWindow(class QWidget *)" (??0CMainWindow@@QEAA@PEAVQWidget@@@Z)
    mainwindow.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl QWebEngineView::~QWebEngineView(void)" (_imp??1QWebEngineView@@UEAA@XZ) referenced in function "public: virtual void * __cdecl QWebEngineView::`scalar deleting destructor'(unsigned int)" (??_GQWebEngineView@@UEAAPEAXI@Z)
    mainwindow.obj:-1: error: LNK2001: unresolved external symbol "protected: virtual class QWebEngineView * __cdecl QWebEngineView::createWindow(enum QWebEnginePage::WebWindowType)" (?createWindow@QWebEngineView@@MEAAPEAV1@W4WebWindowType@QWebEnginePage@@@Z)

    Be Cute

    1 Reply Last reply
    0
    • hskoglundH Offline
      hskoglundH Offline
      hskoglund
      wrote on last edited by
      #2

      Hi, did you add QT += webenginewidgets to your .pro file?

      1 Reply Last reply
      0
      • IamSumitI Offline
        IamSumitI Offline
        IamSumit
        wrote on last edited by
        #3

        yes .

        Be Cute

        1 Reply Last reply
        0
        • IamSumitI Offline
          IamSumitI Offline
          IamSumit
          wrote on last edited by
          #4

          hi this is my .pro file

          QT += core gui

          QT += webenginewidgets network printsupport

          greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

          TARGET = QtWeb
          TEMPLATE = app

          SOURCES += main.cpp
          mainwindow.cpp
          cmywidget.cpp

          HEADERS += mainwindow.h
          cmywidget.h

          FORMS += cmainwindow.ui

          then i run qmake and rebuild again.
          then no error is there even i have included
          #include <QtWebEngineWidgets/QtWebEngineWidgets>
          #include <QtWebEngineWidgets/QWebEngineView>

          QWebEngineView *view;

          but when i allocate memory to view

          view = new QWebEngineView(pvWid);

          then the above errors occurred.

          Be Cute

          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