Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. QtWebEngine
Forum Updated to NodeBB v4.3 + New Features

QtWebEngine

Scheduled Pinned Locked Moved Solved QtWebEngine
17 Posts 6 Posters 5.0k 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.
  • E Offline
    E Offline
    elicat
    wrote on 11 Jun 2018, 17:00 last edited by
    #1

    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?

    Saluti, Gianfranco Elicat

    R 1 Reply Last reply 11 Jun 2018, 19:56
    0
    • E elicat
      11 Jun 2018, 17:00

      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?

      R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 11 Jun 2018, 19:56 last edited by raven-worx 6 Nov 2018, 19:56
      #2

      @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

      E 1 Reply Last reply 12 Jun 2018, 06:07
      2
      • R raven-worx
        11 Jun 2018, 19:56

        @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

        E Offline
        E Offline
        elicat
        wrote on 12 Jun 2018, 06:07 last edited by
        #3

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

        0_1528783629272_capture3.png

        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?

        Saluti, Gianfranco Elicat

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 12 Jun 2018, 06:18 last edited by
          #4

          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.

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

          1 Reply Last reply
          2
          • V Offline
            V Offline
            vithom
            wrote on 13 Jun 2018, 14:41 last edited by
            #5

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

            1 Reply Last reply
            0
            • E Offline
              E Offline
              elicat
              wrote on 13 Jun 2018, 16:12 last edited by
              #6

              @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 :
              0_1528905889800_qtversion.jpg

              If I build with X64 is all ok.
              but if I try to use x86 or win32 I have this error

              0_1528906119739_qtversion_error.jpg

              In QT --> Tools --> options I have configured the parameters of compiler :

              0_1528906310453_qtversion_error_2.jpg

              Mabye it's impossible build in 32bit version?

              Saluti, Gianfranco Elicat

              1 Reply Last reply
              0
              • E Offline
                E Offline
                elicat
                wrote on 16 Jun 2018, 12:17 last edited by
                #7

                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?

                Saluti, Gianfranco Elicat

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 16 Jun 2018, 15:23 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

                  E 1 Reply Last reply 18 Jun 2018, 07:26
                  0
                  • S SGaist
                    16 Jun 2018, 15:23

                    What exact errors are you getting ?

                    E Offline
                    E Offline
                    elicat
                    wrote on 18 Jun 2018, 07:26 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

                    R 1 Reply Last reply 18 Jun 2018, 07:30
                    0
                    • E elicat
                      18 Jun 2018, 07:26

                      @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

                      R Offline
                      R Offline
                      raven-worx
                      Moderators
                      wrote on 18 Jun 2018, 07:30 last edited by raven-worx
                      #10
                      This post is deleted!
                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 18 Jun 2018, 21:34 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

                        E 1 Reply Last reply 19 Jun 2018, 04:19
                        0
                        • S SGaist
                          18 Jun 2018, 21:34

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

                          E Offline
                          E Offline
                          elicat
                          wrote on 19 Jun 2018, 04:19 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 19 Jun 2018, 07:00
                          0
                          • E elicat
                            19 Jun 2018, 04:19

                            @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 19 Jun 2018, 07:00 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.

                            E 1 Reply Last reply 19 Jun 2018, 07:47
                            0
                            • JonBJ JonB
                              19 Jun 2018, 07:00

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

                              E Offline
                              E Offline
                              elicat
                              wrote on 19 Jun 2018, 07:47 last edited by
                              #14

                              @JonB ok thanks

                              Saluti, Gianfranco Elicat

                              E 1 Reply Last reply 19 Jun 2018, 08:56
                              0
                              • E elicat
                                19 Jun 2018, 07:47

                                @JonB ok thanks

                                E Offline
                                E Offline
                                elicat
                                wrote on 19 Jun 2018, 08:56 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
                                • S Offline
                                  S Offline
                                  SGaist
                                  Lifetime Qt Champion
                                  wrote on 19 Jun 2018, 09:32 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

                                  E 1 Reply Last reply 19 Jun 2018, 10:51
                                  0
                                  • S SGaist
                                    19 Jun 2018, 09:32

                                    Hi,

                                    Why are you using a QCoreApplication ?

                                    E Offline
                                    E Offline
                                    elicat
                                    wrote on 19 Jun 2018, 10:51 last edited by
                                    #17

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

                                    Saluti, Gianfranco Elicat

                                    1 Reply Last reply
                                    0

                                    1/17

                                    11 Jun 2018, 17:00

                                    • Login

                                    • Login or register to search.
                                    1 out of 17
                                    • First post
                                      1/17
                                      Last post
                                    0
                                    • Categories
                                    • Recent
                                    • Tags
                                    • Popular
                                    • Users
                                    • Groups
                                    • Search
                                    • Get Qt Extensions
                                    • Unsolved