Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtWebKit and MinGW with QT 5.9
Forum Updated to NodeBB v4.3 + New Features

QtWebKit and MinGW with QT 5.9

Scheduled Pinned Locked Moved Solved General and Desktop
11 Posts 4 Posters 4.7k Views 1 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.
  • D Offline
    D Offline
    davidesalvetti
    wrote on last edited by davidesalvetti
    #1

    Hi all,

    I found in this topic that it's possible to use QtWebKit with mingw(https://forum.qt.io/topic/83760/any-alternative-to-qtwebengine-for-mingw/11).

    I have downloaded the folder from github but now I really don't know what to do with it to use QtWebKit in my project.

    Can anyone give me any advice?

    This is the link from where I downloaded the folder:
    https://github.com/annulen/webkit/releases/download/qtwebkit-tp5/qtwebkit-tp5-qt58-mingw530-x86.zip

    Thanks in advance.

    jsulmJ Q 2 Replies Last reply
    0
    • D davidesalvetti

      Hi all,

      I found in this topic that it's possible to use QtWebKit with mingw(https://forum.qt.io/topic/83760/any-alternative-to-qtwebengine-for-mingw/11).

      I have downloaded the folder from github but now I really don't know what to do with it to use QtWebKit in my project.

      Can anyone give me any advice?

      This is the link from where I downloaded the folder:
      https://github.com/annulen/webkit/releases/download/qtwebkit-tp5/qtwebkit-tp5-qt58-mingw530-x86.zip

      Thanks in advance.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @davidesalvetti You need to put the content of the archive into your Qt 5.8 installation: c:\Qt\5.8\mingw53_32

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • D Offline
        D Offline
        davidesalvetti
        wrote on last edited by davidesalvetti
        #3

        This means that it won't work for QT 5.9?

        I put the content in c:\Qt\5.9.1\mingw53_32 and qt has found the

        QT += webkitwidgets
        

        now if I run my program it suddenly crash telling me "During startup program exited with code 0xc0000017" but only if I put this line in the code:

        void MainWindow::on_actionOpen_Session_triggered()
        {
            QWebView *view = new QWebView(this);
            view->load(QUrl("https://www.google.it/maps"));
            view->show();
        }
        

        I really don't understand why.

        jsulmJ 1 Reply Last reply
        0
        • D davidesalvetti

          This means that it won't work for QT 5.9?

          I put the content in c:\Qt\5.9.1\mingw53_32 and qt has found the

          QT += webkitwidgets
          

          now if I run my program it suddenly crash telling me "During startup program exited with code 0xc0000017" but only if I put this line in the code:

          void MainWindow::on_actionOpen_Session_triggered()
          {
              QWebView *view = new QWebView(this);
              view->load(QUrl("https://www.google.it/maps"));
              view->show();
          }
          

          I really don't understand why.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @davidesalvetti Well, it was built for 5.8, it is likely that you will have problems using it with 5.9.
          Regarding the crash: is it crashing while starting or if you do something (calling on_actionOpen_Session_triggered())?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          D 1 Reply Last reply
          1
          • jsulmJ jsulm

            @davidesalvetti Well, it was built for 5.8, it is likely that you will have problems using it with 5.9.
            Regarding the crash: is it crashing while starting or if you do something (calling on_actionOpen_Session_triggered())?

            D Offline
            D Offline
            davidesalvetti
            wrote on last edited by
            #5

            @jsulm Thank you for the answer.

            It crashes while starting, it shows the mainwindow.ui and then it crashes. I don't call that action while starting my program so it never goes there. The strange thing is that when i comment

                QWebView *view = new QWebView(this);
                view->load(QUrl("https://www.google.it/maps"));
                view->show();
            

            everything works well.

            But at this point I don't know if this is just because I'm using QT 5.9 ...

            jsulmJ 1 Reply Last reply
            0
            • D davidesalvetti

              @jsulm Thank you for the answer.

              It crashes while starting, it shows the mainwindow.ui and then it crashes. I don't call that action while starting my program so it never goes there. The strange thing is that when i comment

                  QWebView *view = new QWebView(this);
                  view->load(QUrl("https://www.google.it/maps"));
                  view->show();
              

              everything works well.

              But at this point I don't know if this is just because I'm using QT 5.9 ...

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @davidesalvetti My guess is that your app is trying to load the QtWebkit DLL which is not compatible with your Qt version.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              D 1 Reply Last reply
              2
              • jsulmJ jsulm

                @davidesalvetti My guess is that your app is trying to load the QtWebkit DLL which is not compatible with your Qt version.

                D Offline
                D Offline
                davidesalvetti
                wrote on last edited by
                #7

                @jsulm Also mine. I will find another solution. Thank you for your time!

                K 1 Reply Last reply
                0
                • D davidesalvetti

                  @jsulm Also mine. I will find another solution. Thank you for your time!

                  K Offline
                  K Offline
                  Konstantin Tokarev
                  wrote on last edited by
                  #8

                  @davidesalvetti For Qt 5.9 you can use prebuilt binaries from https://github.com/annulen/webkit/releases/tag/qtwebkit-5.212.0-alpha2

                  D 1 Reply Last reply
                  2
                  • K Konstantin Tokarev

                    @davidesalvetti For Qt 5.9 you can use prebuilt binaries from https://github.com/annulen/webkit/releases/tag/qtwebkit-5.212.0-alpha2

                    D Offline
                    D Offline
                    davidesalvetti
                    wrote on last edited by
                    #9

                    @Konstantin-Tokarev I tried those binaries, but It gives me exactly the same problem.

                    1 Reply Last reply
                    0
                    • D davidesalvetti

                      Hi all,

                      I found in this topic that it's possible to use QtWebKit with mingw(https://forum.qt.io/topic/83760/any-alternative-to-qtwebengine-for-mingw/11).

                      I have downloaded the folder from github but now I really don't know what to do with it to use QtWebKit in my project.

                      Can anyone give me any advice?

                      This is the link from where I downloaded the folder:
                      https://github.com/annulen/webkit/releases/download/qtwebkit-tp5/qtwebkit-tp5-qt58-mingw530-x86.zip

                      Thanks in advance.

                      Q Offline
                      Q Offline
                      Qt2019
                      wrote on last edited by
                      #10

                      @davidesalvetti
                      I have used ”qtwebkit-5.212.0_alpha2-qt59-mingw530-x86.zip“,it can compile OK,but it crashes when running the programe. my code is just a webview demo...

                      1 Reply Last reply
                      0
                      • K Offline
                        K Offline
                        Konstantin Tokarev
                        wrote on last edited by
                        #11

                        @Qt2019 Does it crash when you load some site, or even with "about:blank"? If you are using debug build please try release.

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