How to install QtWebEngine
-
Hello. I have :
windows 7
vs 2013
qt addin 1.2.5
qt creator 5.6.1
vs 2015I saw in a tutorial WebView widget, but don't found it at my environment. Then I read, that now QtWeb is not a part of QtCreator, so i have to install it myself. Could you help me to find what i need to install and how to install (because i didn't find it) to use QtWebView (or QtWebEngine) in QtCreator ?
-
Hi,
Which version of Qt did you install ?
-
@Dovzhik-Anatoly said:
qt creator 5.6.1
-
Do you mean Qt 5.6.1 ? The version of Qt Creator has nothing to do with Qt itself.
In any case, did you add
QT += webengine
to your .pro file ? -
Do you mean Qt 5.6.1 ? The version of Qt Creator has nothing to do with Qt itself.
In any case, did you add
QT += webengine
to your .pro file ?@SGaist
Now i have addedQT += webengine
to my .pro file.
In "Display Widgets" i still don't see something like WebView or similar -
If you want to use QtWebEngine's widgets you have to add
QT += webenginewidgets
to your .pro file. Don't forget to re-run qmake to ensure the new values are taken into account. -
If you want to use QtWebEngine's widgets you have to add
QT += webenginewidgets
to your .pro file. Don't forget to re-run qmake to ensure the new values are taken into account.@SGaist
My .pro file :QT += core gui webenginewidgets greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = ViewTry TEMPLATE = app SOURCES += main.cpp\ mainwindow.cpp HEADERS += mainwindow.h FORMS += mainwindow.ui
After i have added
webenginewidgets
i pressed "Build" -> "Run qmake". Nothing changed in "Display Widgets" category. After rerunning Qt Creator all the same. -
Do you mean in designer ?
-
-
I don't remember whether there's a plugin for Designer for QtWebEngine. However it should be pretty easy to set things by hand in the constructor of your object.