PDA

View Full Version : Issue with interactivity loaded on the qgraphicswebview



ejoshva
11th April 2015, 03:57
I am loading the html page with interactivity downloaded from server.

I am not able to select anything or click on the submit button. Also during loading the loading page seems to be outside it's specified position.
11068
11069

Below is that html page content


"<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>
<html xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:svg="http://www.w3.org/2000/svg" xmlns:epub="http://www.idpf.org/2007/ops" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" epub:prefix="index: http://www.index.com/">
<head>
<title>Topic 1: The chemistry of life</title>
<link rel="stylesheet" type="text/css" href="css/custom.css"/>
<script type="text/javascript" src="js/MathJax2sSparkl/MathJax.js?config=TeX-AMS-MML_HTMLorMML,local/local"></script>
<link rel="stylesheet" type="text/css" href="js/prettify.css" />
<link rel="stylesheet" type="text/css" href="js/tooltipster.css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/prettify.js"></script>
<script type="text/javascript" src="js/scripts.js"></script>
<script type="text/javascript" src="js/jquery.tooltipster.js"></script>
<script type="text/javascript" src="js/tooltip.js"></script>
</head>
<body id="p001_052" epub:type="bodymatter"><div class="zousho" pageno="52">
<section id="p002_052" class="chapter" epub:type="chapter">
<div id="p003_052" class="intWidget">
<div id="p004_052" class="intWidget1">
<iframe id="p005_052" class="iframe" src="https://media.pearsoncmg.com/intl/sa/SA_Schools/Life_Sciences/G10/Interactive/Activity/A0426780/player.html"></iframe>
</div>
<div id="p006_052" style="width: 100%; font-size: 14px; min-height: 42px; margin-left: 0px; padding-left: 0px; padding-right: 0px; padding-bottom: 0px; border-top: 1px solid rgb(176, 176, 176); font-family: Open Sans,sans-serif; background-color: rgb(246, 246, 246);"></div>
</div>
</section>
</div></body></html>"




In the console, the below error is displayed

QSslSocket: cannot call unresolved function SSL_get0_next_proto_negotiated
2015-04-11 08:14:24.222 ssparkl[5150:507] Error loading /Library/Internet Plug-Ins/QuickTime Plugin.plugin/Contents/MacOS/QuickTime Plugin: dlopen(/Library/Internet Plug-Ins/QuickTime Plugin.plugin/Contents/MacOS/QuickTime Plugin, 265): no suitable image found. Did find:
/Library/Internet Plug-Ins/QuickTime Plugin.plugin/Contents/MacOS/QuickTime Plugin: mach-o, but wrong architecture
2015-04-11 08:14:24.223 ssparkl[5150:507] Error loading /Library/Internet Plug-Ins/AdobePDFViewer.plugin/Contents/MacOS/AdobePDFViewer: dlopen(/Library/Internet Plug-Ins/AdobePDFViewer.plugin/Contents/MacOS/AdobePDFViewer, 262): no suitable image found. Did find:
/Library/Internet Plug-Ins/AdobePDFViewer.plugin/Contents/MacOS/AdobePDFViewer: no matching architecture in universal wrapper


When I googled regarding this error, library files are asked to be removed.

Kindly let me know the suitable fix for this issue.

Attached the screen shot of the page loaded on the webview

wysota
11th April 2015, 07:44
How is the problem related to Qt?

ejoshva
11th April 2015, 07:54
https://media.pearsoncmg.com/intl/sa/SA_Schools/Life_Sciences/G10/Interactive/Activity/A0426780/player.html

Try loading this above link on webview. Its getting loaded on other browsers like Chrome.
I did try loading this page on Qt5.4 examples -> browser. Only after that confirmed, Qt doesn't support

It's getting loaded but not able to select the radio button.

Seems like webview doesn't support

wysota
11th April 2015, 08:42
What exactly doesn't work? I can load the page just fine in the webkitwidgets/browser example that comes with Qt.

ejoshva
11th April 2015, 09:34
Yes Page loading is just fine.

There are checkboxes on the page and a button "check my answer"

I am not able to check the check box.

wysota
11th April 2015, 12:31
Does it work with other webkit-based browsers?

ejoshva
12th April 2015, 17:57
yes it works normally with other browsers

wysota
13th April 2015, 06:55
yes it works normally with other browsers

What webkit browsers did you test it with?

Do Qt examples that use SSL sockets work properly?

ejoshva
13th April 2015, 10:17
actually I tried with different browsers like IE, Chrome, Mozila, Safari.

In all these browsers it worked properly.

No, I haven't checked the Qt examples which uses SSL sockets.

wysota
13th April 2015, 10:23
actually I tried with different browsers like IE, Chrome, Mozila, Safari.
I was asking for WebKit based browser. IE, Chrome and Mozilla are not based on WebKit. Safari is based on customized WebKit.


No, I haven't checked the Qt examples which uses SSL sockets.
Please do since you are getting an error related to SSL.

ejoshva
15th April 2015, 08:25
I tried with webkit based browsers in mac like Sunrise, flock, stainless. In all these browsers, I am able to check the check box.

ejoshva
20th April 2015, 12:59
https://media.pearsoncmg.com/intl/sa/SA_Schools/Life_Sciences/G10/Interactive/Activity/A0426780/player.html

I am able to load the page and check the checkboxes on the page in QWebEngineView (browser created with QWebEngineView is found in Examples/QWebEngine)

wysota
20th April 2015, 17:27
QWebEngineView doesn't use WebKit. It has a different backend.