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 -
@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 recognizedThis 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. -
Hi,
Why are you using a QCoreApplication ?