Unsolved QTWebEngine 'unresolved external symbol "_declspec... referenced in function
-
I keep getting these errors whenever I try to put a webengineview in my UI. Taking the webengineview out makes everything else work again. Anyone have any idea why this is happening?
-
@part-time-roadman Please show your pro file. It looks like you do not link against web engine.
-
This is my pro file
-
@part-time-roadman How did you install Qt and web engine? Which Qt version do you use?
-
I'm on the latest one so 5.15 I think. When I installed Qt I installed everything including the web engine view.
-
Hey, I think you need to use
webenginewidgets
.
webengine
is for QML. -
I give up webengine just does not work at all no matter what I try.
-
I give up webengine just does not work at all no matter what I try.
As @Bonnie has written that is because
webengine
is simply not for a Qt widgets application. -
@part-time-roadman You should not give up so fast, else you will not have much success, doesn't matter what you use. Especially if the problem is not the framework but the fact that you're doing something wrong.
A tip: to know what to add to the pro file simply check documentation. For example: https://doc.qt.io/qt-5/qwebengineview.html
Just there at the top: "qmake: QT += webenginewidgets"