Solved QtWebEngine
-
I have installed QT version 5.9.4 into virtual machine with win7 and VS12.
I have try used QtWebEngine ( http://doc.qt.io/qt-5/qtwebengine-webengine-minimal-example.html)
I have checked and module QtWebEngine and now, it is installed.I have try use QtWebEngine but it is not recognized. Why?
I have read various discussion in forums and it seems impossibile with mingw53_32.
Does anyone know how to use QtWebEngine? -
@elicat
QtWebEngine is not available with mingw32.
But anyway you installed Qt for VS2012, so why do you want to use it with mingw32?? Obviously thats not possible -
@raven-worx good morning, I have installed Visual Studio 2017 and QT 5.9.4 on virtual machine whit Win7 and 32bit.
So, i have installe in qt only msvc2015 32bit but in the kit is disabled.Excuse me, I'm a newbie, but do not the modules in the kit serve only to compile based on where the programs will be run?
When I write the program it should not affect, or am I wrong? -
Hi,
What @raven-worx meant is that you can't mix and match compilers on Windows. If you have a C++ library built with MinGW32 then you have to build everything with MinGW. For Visual Studio it goes even further, the different versions of VS are not compatible one with the other except for VS2017 which is backward compatible with VS2015.
In any case, hover the red icon and see what errors are stated there.
-
@SGaist said in QtWebEngine:
For Visual Studio it goes even further, the different versions of VS are not compatible one with the other except for VS2017 which is backward compatible with VS2015.
In any case, hover the red icon and see what errors are stated there.
So does it means that if you install VS2017, you are able to compile with msvc2015 prebuilt component ?
-
@vithom said in QtWebEngine:
So does it means that if you install VS2017, you are able to compile with msvc2015 prebuilt component ?
I have installed VS2017 and QT 5.9.4 on win10 64bit.
after I have configured qt version same this :
If I build with X64 is all ok.
but if I try to use x86 or win32 I have this errorIn QT --> Tools --> options I have configured the parameters of compiler :
Mabye it's impossible build in 32bit version?
-
OK, Now I have install on Ubuntu System 32bit Qt Creator and QtWebEngine is recognized. But wen buil the program I have error in :
QtWebEngine::initialize();
I must install other component in Linux for build with QT and yours QtWebEngine?
-
What exact errors are you getting ?
-
@SGaist Good Morning,
the cod of main is this :#include <QCoreApplication> #include <QtGui/QApplicationStateChangeEvent> #include <QtQml/QQmlApplicationEngine> #include <QtWebEngine/qtwebengineglobal.h> #include <WebClass.h> #include <QtWebChannel/QQmlWebChannel> #include <QtWebChannel/qwebchannel.h> #include <QtWebEngineWidgets/QtWebEngineWidgets> int main(int argc, char *argv[]) { QCoreApplication app(argc, argv); QtWebEngine::initialize(); QQmlApplicationEngine engine; engine.load(QUrl(QStringLiteral("main.qml"))); return app.exec(); }
Erros when build :
/home/gianfranco/Public/QtApplication/QtWebApplicationUbuntu/main.cpp:17: error: undefined reference to `QtWebEngine::initialize()'
I do not understand where the cause is.
The statements are recognized -
This post is deleted! -
Maybe a silly question but did you add
QT += webengine
to you .pro file ? -
@SGaist Arghh.. you tell me correct.. -I am again beginner, now, when i buil i have this problem.
what is still missing?/usr/bin/ld: cannot find -lGL
-
@elicat
Use the Search icon at the top of this page to search this forum forlGL
(note not for-lGL
). You will find lots of this specific question and its solutions. -
@JonB ok thanks
-
@elicat all is perfect, now it build without errors, but… UFF… but when i run the program it crashed. I lunch with debug and i have this error. The same project run in x64bit with 5.9.4.
-
Hi,
Why are you using a QCoreApplication ?
-
@SGaist Ok, I'm stupid. sorry. thank you all