qtwebkit

Capybara Webkit Capybara::Webkit::ConnectionError failed to start

☆樱花仙子☆ 提交于 2019-12-07 04:29:23
问题 I'm using capybara webkit on Ubuntu (14.04 LTS) and I'm getting the following error when trying to use it: Capybara::Webkit::ConnectionError: /srv/www/app/shared/bundle/ruby/2.1.0/gems/capybara-webkit-1.3.1/bin/webkit_server failed to start. from /srv/www/app/shared/bundle/ruby/2.1.0/gems/capybara-webkit-1.3.1/lib/capybara/webkit/connection.rb:75:in `parse_port' from /srv/www/app/shared/bundle/ruby/2.1.0/gems/capybara-webkit-1.3.1/lib/capybara/webkit/connection.rb:81:in `discover_port' from

how do I correctly return values from pyqt to JavaScript?

谁都会走 提交于 2019-12-06 23:33:53
问题 I already found and edited in an answer below. I want to return values from python code to javascript context within QtWebKit. So far, I have a class like this: class Extensions(QtCore.QObject): @QtCore.pyqtSlot() def constant_one(self): return 1; # ... later, in code e = Extensions(); def addextensions(): webview.page().mainFrame().addToJavaScriptWindowObject("extensions", e); # ... webview.connect(webview.page().mainFrame(), QtCore.SIGNAL("javaScriptWindowObjectCleared"), addextensions) I

How to find out the dimensionality of print paper in javascript

这一生的挚爱 提交于 2019-12-06 16:23:11
I am generating reports in HTML formats, and want to print them automatically using Qt (qt has a webkit based browser, and one can render its contents to a PDF file). I want to position the elements of the report depending on the target page size. For that i need to access the size of the paper (preferably in pixels). Since i am using webkit, it has all the latest html5 and css3 features. is there some api available to access printed page properties inside javascript. for example, would be nice to write: window.print_paper.width or window.print_paper.height Thank you in advance What you're

Qt webkit widget error

烈酒焚心 提交于 2019-12-06 07:56:13
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: QMutex: destroying locked mutex I fixed this issue by installing the openssl win32 binaeries found here 来源

QtWebKit playing HTML5 video without installing flash player

最后都变了- 提交于 2019-12-06 07:55:30
问题 With latest Flash player installed, and enable the Plugins, my simple example can play youtube videos OS: windows 7 Qt: 4.7.4 (both 32 & 64bit works) However, according to "http://www.youtube.com/html5", my example browser supports "Video tag" and "H.264", I was wondering why can't I just DISABLE the Plugins and play the video as usual? I have followed the procedure of " Watch a Video in YouTube's HTML5 Player" http://googlesystem.blogspot.com/2010/08/watch-video-in-youtubes-html5-player.html

PhantomJS WebPage memory consumption?

北战南征 提交于 2019-12-06 07:45:37
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 No, at this time this feature is not supported, but I have found issue about that https://github.com/ariya/phantomjs/issues/10031 来源: https:/

How to edit QtWebKit's right-click context menu in Qt Creator?

我怕爱的太早我们不能终老 提交于 2019-12-06 06:42:02
问题 Alright, here's my dillema. I am making a simple application with Qt Creator that makes use of Webkit. I thought Qt Creator would have an easy way to edit the right-click context menu with the signals and slots editor, but this has proven to not be true. I know webkit has classes that have to do with the context menu, but I don't know how to access them through Qt Creator. I need to edit the "Open Link in New Window" part of the context menu so that it opens my application up in a new window

Web technologies in GUI apps

别说谁变了你拦得住时间么 提交于 2019-12-06 06:04:44
问题 What's your experience in using web technologies (HTML, XML, CSS, JavaScript) to implement part of the functionality of a GUI application? Pros and cons, please. No servers, relational databases, AJAX, or cookies for session management, nor an existing webapp either, but rather a GUI app that uses web widgets (like Qt WebKit) to render and handle substantial parts of the UI, while taking advantage of a GUI framework to achieve an even richer interaction and better desktop integration. I've

How to Create a webservice by Qt [closed]

半世苍凉 提交于 2019-12-06 01:35:25
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I am looking for a tool or plugin that help me to create web service as DOT NET does for Linux. 回答1: From the OP Edit in question:

Qt4: How to call JavaScript functions in a page from C++ via QtWebkit?

喜欢而已 提交于 2019-12-06 00:37:55
问题 I'm trying to write a simple log viewer using Qt4's WebKit port/implementation. My HTML code looks like this: http://pastie.org/613296 More specifically, I'm trying to find out how to call the add_message() function which is defined in the <script> section in the HTML document from my C++ code. // Doesn't work: QWebElement targetElement = chatView->page()->mainFrame()->findFirstElement("head").firstChild("script"); // Function is not included, either... qDebug() << targetElement.tagName() <<