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

QWebView crashes when charging google maps

Scheduled Pinned Locked Moved Unsolved Qt WebKit
4 Posts 3 Posters 1.4k 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
    #1

    This is an answer to link text because I don't know why askimet don'ty allow me to send messages. basically I'm trying to use google maps using qwebview but I don't know why the program keep crashing. Also using the new binaries provided by @Konstantin-Tokarev
    the program crashes. This is what I've done on a completely new machine and on a virgin installation of Qt:

    • I have downloaded the binaries from the link you have sent to me in particular this one qtwebkit-Windows-Windows_7-Mingw53-Windows-Windows_7-X86.7z.

    • I have unzipped the folder and i have copied the files into the respective folders in my D:\Programmi\Qt\5.10.0\mingw53_32 installation.

    • I have copied in the same folder as above also the libeay32.dll and ssleay32.dll for the OpenSSL.

    • My platform is windows 10 and I'm using qt 5.10.0 with MinGW53_32.

    • This is the code I tried:

    #include "mainwindow.h"
    #include <QApplication>
    #include <QtWebKitWidgets>
    
    int main(int argc, char *argv[])
    {
        QApplication a(argc, argv);
    //    MainWindow w;
    //    w.show();
    
        QWebView *view = new QWebView;
        view->load(QUrl("https://www.google.it"));
        view->show();
    
        return a.exec();
    }
    

    When I run it, It appears the google page, I search for google maps but when the map is completely charged it crashes. I don't give any inputs to the map so I really don't know what is causing the crash. Can somebody help me? Also with alternative solutions, I've been stuck at this for too long.

    Thanks for you help.

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

      Are you using release build?

      D 1 Reply Last reply
      1
      • K Konstantin Tokarev

        Are you using release build?

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

        @Konstantin-Tokarev I tried both, debug and release mode, nothing changed a part from the fact that in release it's faster to crash.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          Amin Ji
          wrote on last edited by
          #4

          hello there,
          I have the same problem. did you solve this?
          regards.

          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