Unsolved Program crashes after loading google map inside the form
-
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(); }
-
What QtWebKit version are you using?
In addition, I used a try-catch to find the error when crashing,
QtWebKit doesn't throw exceptions
-
![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.If you can't recognise the QTWebkit version inside the above information, would you tell me how to find it myself please?
Regards.
-
@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 PackagesRegards.
-
@Konstantin-Tokarev I need your help please! Looking for hearing any advices from you!
-
@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.