qtwebkit

How to save webpage in Qt WebKit as “save as complete webpage”

心已入冬 提交于 2019-12-10 15:17:37
问题 I need to save web page using Qt WebKit similar to "Save as complete webpage" . Following are my requirements, Save the index html file, maintaining entity encoding. Need to download all linked images and other resources. Need to change resource path in html page to local downloaded path. Need to maintain webpage current state. I can use Qt and JavaScript to do this. Please provide me some inputs on this. Thanks 回答1: You could use a HTML parser to parse the current page, then look for all the

CSS 'contains' selector & upgrade of Capybara

五迷三道 提交于 2019-12-10 13:46:47
问题 Previously my specs had these lines: within "h3:contains('FooBar text') + dl" do page.should have_content 'FizzBuzz' end (within definition list next from header that contains specified text) I upgraded capybara-webkit and now 'contains' selector does not work (which is kind a fine and understandable since it's deprecated in CSS3). I can't figure out an easy way to rewrite this. Any ideas? 回答1: I think you upgraded not only capybara-webkit but also capybara. Capybara 2.1 now uses driver's

Qt: Expose any C++ object to Javascript

旧街凉风 提交于 2019-12-10 12:36:22
问题 I'd like to expose a C++ object from my own class to Javascript. An example might clarify, what exactly I am trying to achieve. In a particular project I am trying to program some simple ShopApp. So how can i make something like this possible (where mySqlObj is my sqlfunctions -object): $(document).ready(function(){ $("#someButtonId").click(function(){ mySqlObj.refillBalance(1000); // adds 1000 units of money to user's account // or mySqlObj.listAllPorducts(); }); }); There I have got a class

Qt webkit widget error

痴心易碎 提交于 2019-12-10 11:29:40
问题 I've managed to get qmake to compile the .pro file for webkit and trying to make a basic browser window, it just about build but the below error pops up? Auto configuration failed 8744:error:02001015:system library:fopen:Is a directory:.\crypto\bio\bss_file.c:126:fopen('g:/test/openssl098u/openssl.cnf','rb') 8744:error:2006D002:BIO routines:BIO_new_file:system lib:.\crypto\bio\bss_file.c:131: 8744:error:0E078002:configuration file routines:DEF_LOAD:system lib:.\crypto\conf\conf_def.c:199:

How to INSTALL & RUN QML QtWebEngine & QtWebKit on SBC using Yocto / Unable to fetch URL from any source

懵懂的女人 提交于 2019-12-09 15:50:01
问题 Environment Debian GNU/Linux 7.8 (wheezy) Linux marvin 3.16-0.bpo.2-amd64 #1 SMP Debian 3.16.3-2~bpo70+1 (2014-09-21) x86_64 GNU/Linux Raspberry Pi 2 Yocto Poky Qt5 My goal is to run Chromium layout web engine on the RPi2 I want to be able to run this on my RPi2: import QtQuick 2.1 import QtQuick.Controls 1.1 import QtWebEngine 1.0 ApplicationWindow { width: 1280 height: 720 visible: true WebEngineView { id: webview url: "http://www.qt-project.org" anchors.fill: parent } } How I created my

problem in making custom root certificate store for SSL using QT?

大憨熊 提交于 2019-12-08 06:44:34
问题 I am developing my custom browser in Qt using QWebView and I am trying to make my own root cert store of trusted certificates which are taken from mozilla project. I have used QSslSocket::setDefaultCaCertificates() to override the default certificates. But I am not able to load https://www.gmail.com , where as in mozilla it works. I have set all required root certs for gmail to my store. can anyone guide me ? 回答1: The reason you can't connect is because the SSL certificate (with serial 2F:DF

PhantomJS WebPage memory consumption?

百般思念 提交于 2019-12-07 21:45:13
问题 Is there a programmatic (since i want to do it automatically at runtime) way to see how much memory a webpage uses when running it through PhantomJs? I am also using casperjs if that could be helpful. I have searched a lot but haven't found any way. PhantomJs uses QtWebKit so I don't have access to window.performance.memory. I want to have this information since I am setting up automated performance tests for a web application. Thanks in advance 回答1: No, at this time this feature is not

-webkit-box-shadow blur with QtWebKit?

寵の児 提交于 2019-12-07 11:46:45
问题 Is there any way to achieve working blur for -webkit-box-shadow at the time? Reading through the comments of this bug report, i recognized that this is still an issue, although the bug report is marked as RESOLVED FIXED since version 528 (I am using version 534.6). 回答1: I downloaded QT(windows) version 4.7.0 with newest(now) SDK 4.7.1, still -webkit-box-shadow or box-shadow tag (css33) does not work as its suppose to. instead of a 'box shadow' it displays only 'solid border'. Other webkit

PyQt + QtWebkit behind a proxy

拥有回忆 提交于 2019-12-07 06:47:48
问题 I'm writing a PyQt (Python bindings for the all-powerful Qt library) application and a small part of my application needs a web browser (hint, OAuth). So I started using QtWebkit, which is fantastic by the way. The only hitch is I would like to allow users behind a proxy to use my application. I have read about the QNetworkProxy class in the QtNetwork package and figure it should do the trick. The only problem is when I create and apply the proxy, it works just fine over HTTP, but when I pass

QtWebkit Same-Origin-policy

我的未来我决定 提交于 2019-12-07 06:47:35
问题 I have QtWebkit ported on Arm based platform. We are able to run QtTestBrowser. I wanted to disable "same-origin-policy" in the above browser. Please let me know if any body has idea on this. 回答1: I know this is old, but you can do this by modifying the QWebPage's settings: auto settings = page.settings(); settings->setAttribute(QWebSettings::LocalContentCanAccessRemoteUrls,true); settings->setAttribute(QWebSettings::LocalContentCanAccessFileUrls,true); 回答2: By default, Qt doesn't expose