Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. QtWebEngine
Qt 6.12 LTS is out! See what's new in the release blog

QtWebEngine

Scheduled Pinned Locked Moved Solved QtWebEngine
17 Posts 6 Posters 8.8k Views 3 Watching
  • 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #8

    What exact errors are you getting ?

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    elicatE 1 Reply Last reply
    0
    • SGaistS SGaist

      What exact errors are you getting ?

      elicatE Offline
      elicatE Offline
      elicat
      wrote on last edited by
      #9

      @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

      Saluti, Gianfranco Elicat

      raven-worxR 1 Reply Last reply
      0
      • elicatE elicat

        @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

        raven-worxR Offline
        raven-worxR Offline
        raven-worx
        Moderators
        wrote on last edited by raven-worx
        #10
        This post is deleted!
        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #11

          Maybe a silly question but did you add QT += webengine to you .pro file ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          elicatE 1 Reply Last reply
          0
          • SGaistS SGaist

            Maybe a silly question but did you add QT += webengine to you .pro file ?

            elicatE Offline
            elicatE Offline
            elicat
            wrote on last edited by elicat
            #12

            @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
            
            

            Saluti, Gianfranco Elicat

            JonBJ 1 Reply Last reply
            0
            • elicatE elicat

              @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
              
              
              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by JonB
              #13

              @elicat
              Use the Search icon at the top of this page to search this forum for lGL (note not for -lGL). You will find lots of this specific question and its solutions.

              elicatE 1 Reply Last reply
              0
              • JonBJ JonB

                @elicat
                Use the Search icon at the top of this page to search this forum for lGL (note not for -lGL). You will find lots of this specific question and its solutions.

                elicatE Offline
                elicatE Offline
                elicat
                wrote on last edited by
                #14

                @JonB ok thanks

                Saluti, Gianfranco Elicat

                elicatE 1 Reply Last reply
                0
                • elicatE elicat

                  @JonB ok thanks

                  elicatE Offline
                  elicatE Offline
                  elicat
                  wrote on last edited by
                  #15

                  @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.

                  0_1529398559134_ubuntu_test-complie.png

                  Saluti, Gianfranco Elicat

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by SGaist
                    #16

                    Hi,

                    Why are you using a QCoreApplication ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    elicatE 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      Hi,

                      Why are you using a QCoreApplication ?

                      elicatE Offline
                      elicatE Offline
                      elicat
                      wrote on last edited by
                      #17

                      @SGaist Ok, I'm stupid. sorry. thank you all

                      Saluti, Gianfranco Elicat

                      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
                      • Unsolved