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. Program crashes after loading google map inside the form
Forum Updated to NodeBB v4.3 + New Features

Program crashes after loading google map inside the form

Scheduled Pinned Locked Moved Unsolved Qt WebKit
6 Posts 2 Posters 1.5k Views 2 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.
  • A Offline
    A Offline
    Amin Ji
    wrote on 19 Jan 2019, 06:40 last edited by aha_1980
    #1

    Hello everyone,
    I'm developing a qt application in raspberry pi3 . The program includes a part which shows a special latitude and longitude on google maps (online). When running the program after loading the google map ( about 4 seconds) suddenly it crashes and shows "The program has unexpectedly finished."! here is the code I use to show the map :

    ui->webView->setUrl(QUrl("https://www.google.com/maps/@30.2676303,57.0950032,16z"));
    

    In addition, I used a try-catch to find the error when crashing, but the program doesnt go to catch part and shows nothing! This is my code with using try-catch :

    try{
            ui->webView->setUrl(QUrl("https://www.google.com/maps/@30.2676303,57.0950032,16z"));
                }
        catch (...) {
              QMessageBox msgBox;
             msgBox.setText("something went wrong.");
               msgBox.exec();
        }
    
    1 Reply Last reply
    0
    • K Offline
      K Offline
      Konstantin Tokarev
      wrote on 19 Jan 2019, 23:56 last edited by
      #2

      What QtWebKit version are you using?

      In addition, I used a try-catch to find the error when crashing,

      QtWebKit doesn't throw exceptions

      A 2 Replies Last reply 20 Jan 2019, 11:04
      2
      • A Offline
        A Offline
        Amin Ji
        wrote on 20 Jan 2019, 09:52 last edited by
        #3

        ![thanks for the respond,
        actually I don't know the exact version of QTWebkit version but in "About QT Creator" section there're these information given:

        Qt Creator 3.2.1
        Based on Qt 5.3.2 (GCC 4.9.2, 32 bit)

        Built on May 11 2016 at 17:13:20

        Copyright 2008-2014 Digia Plc. All rights reserved.
        The program is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

        About QT Creator

        If you can't recognise the QTWebkit version inside the above information, would you tell me how to find it myself please?

        Regards.

        1 Reply Last reply
        0
        • K Konstantin Tokarev
          19 Jan 2019, 23:56

          What QtWebKit version are you using?

          In addition, I used a try-catch to find the error when crashing,

          QtWebKit doesn't throw exceptions

          A Offline
          A Offline
          Amin Ji
          wrote on 20 Jan 2019, 11:04 last edited by
          #4

          @Konstantin-Tokarev
          I found this command to identify the qtwebkit version, but not sure about it:

          apt-cache policy libwebkitgtk-3.0-0

          the output is :
          libwebkitgtk-3.0-0:
          Installed: 1:2.4.1-1rpi53rpi1g
          Candidate: 1:2.4.1-1rpi53rpi1g
          Version table:
          *** 1:2.4.1-1rpi53rpi1g 0
          500 http://archive.raspberrypi.org/debian/ jessie/main armhf Packages
          100 /var/lib/dpkg/status
          2.4.9-1~deb8u1+rpi1 0
          500 http://mirrordirector.raspbian.org/raspbian/ jessie/main armhf Packages

          Regards.

          1 Reply Last reply
          0
          • K Konstantin Tokarev
            19 Jan 2019, 23:56

            What QtWebKit version are you using?

            In addition, I used a try-catch to find the error when crashing,

            QtWebKit doesn't throw exceptions

            A Offline
            A Offline
            Amin Ji
            wrote on 22 Jan 2019, 10:18 last edited by
            #5

            @Konstantin-Tokarev I need your help please! Looking for hearing any advices from you!

            1 Reply Last reply
            0
            • A Offline
              A Offline
              Amin Ji
              wrote on 30 Jan 2019, 08:21 last edited by
              #6

              @SGaist Can you help me with this case? I think QT 5.3 has a problem with Webview, then I plan to install qt5.12 (which I'm asking for help in another topic). what do you think bro?
              thanks.

              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