qtwebkit

-webkit-box-shadow blur with QtWebKit?

霸气de小男生 提交于 2019-12-05 23:47:13
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). 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 apps, like chrome work as they are suppose to. Any fix for the same? 来源: https://stackoverflow.com/questions

“QComboBox Pop-up” expanding and QtWebkit

我与影子孤独终老i 提交于 2019-12-05 21:32:15
问题 In Firefox/Chrome/InternetExplorer/Safari/Opera pop-ups from the combobox expand as the content, see Firefox picture: QComboBox pop-up does not expand the content. Pop-ups are limited by the size of QComboBox , see QWebView picture: So I implemented the QComboBox::showPopup : void newQComboBox::showPopup() { int width = this->width(); this->view()->setTextElideMode( Qt::ElideNone ); const int iconSize = this->iconSize().width(); const QFontMetrics fontMetrics = this->fontMetrics(); const int

How to port Qt4.6 Phonon based media-application to Qt 5.1?

坚强是说给别人听的谎言 提交于 2019-12-05 21:29:35
I have a Qt 4.6 based application which use QtWebView to load a HTML page with tag inside to play a network multimedia source on Windows platform. Instead of using the default PHONON playback engine i build another PHONON back-end engine to handle the media download, demuxer,decoder, rendering etc. It works pretty well. However i need to update to Qt 5.1 to benefit the improvement and bug fix in latest QtWebView. From Qt 4.8 PHONON was dropped and when porting to Qt 5.1 my self implemented playback engine is unknown to QtWebView and my app doesn't work at all. Does any body have an idea how to

Crossplatform webview in Qt5.6

一笑奈何 提交于 2019-12-05 20:48:29
问题 I am using Qt 5.6 with MinGW on Windows 10 64x for developing a cross platform app (desktop + mobile). In Qt 5.5, I could use WebKit to make a cross platform app for showing web pages in my app, and I could use it on Windows, Android, iOs... Today, I realized we can't use it anymore, we can't use QtWebView neither for Windows and also can't use QtWebEngine with MinGW. Thus, I am confused : knowing that I want to show a webpage using my current configuration (for android desktop and mobile

QWebView / Qt WebKit won't open some SSL pages; redirects not allowed?

谁都会走 提交于 2019-12-05 15:04:02
问题 Clean install of Qt SDK 1.1.4 on Windows 7 with Visual C++ 2008 SP1; I'm using Qt Creator. Why does this code not load some web pages? #include <QtGui/QApplication> #include <QtWebKit/QWebView> int main(int argc, char *argv[]) { QApplication a(argc, argv); QWebView b; b.load(QUrl("https://gmail.com")); // doesn't work //b.load(QUrl("https://accounts.google.com")); // works //b.load(QUrl("https://google.com")); // doesn't work //b.load(QUrl("https://www.google.com")); // works b.show(); return

Render web content offscreen using QtWebEngine

白昼怎懂夜的黑 提交于 2019-12-05 14:15:05
I am trying to port an application that uses QtWebKit to render web content over to one that uses QtWebEngine. I am limited what I can change architecturally so I have to stick with the current approach of rendering the page, capturing to a memory buffer and then moving that across to a different process where the buffer is used as a texture in OpenGL. I've tried porting the code over (broadly speaking) by replacing WebKit with WebEngine, but the APIs are different. Can anyone tell me if this is possible? If so, please point me in the right direction to illustrates how to hook everything up.

Using QTWebKit to display a website stored in memory

拥有回忆 提交于 2019-12-05 10:07:22
Currently I have my HTML, JS, CSS, graphics, etc stored locally on hard disk and access them using QWebFrame::SetUrl( QUrl::fromLocalFile( "appFolder\html\index.html" )) . At some point I am going to need to encrypt the locally stored files so I'm looking for a way to either decrypt them as they're requested or to decrypt them all into memory and access them that way. I know I can use QWebFrame::setContent( htmlData ) to load the HTML from memory so I can load the encrypted HTML file, decrypt it in memory and then display it that way, but how would I go about the other data (JS, CSS, graphics,

PyQt + QtWebkit behind a proxy

泪湿孤枕 提交于 2019-12-05 08:50: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 it a HTTPS (SSL) URL, it gives me the following errors: QSslSocket: cannot call unresolved function

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

我的梦境 提交于 2019-12-05 06:35:26
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 /srv/www/app/shared/bundle/ruby/2.1.0/gems/capybara-webkit-1.3.1/lib/capybara/webkit/connection.rb:62:in

catch link clicks in QtWebView and open in default browser

我的梦境 提交于 2019-12-05 05:44:35
I am opening a page in QtWebView (in PyQt if that matters) and I want to open all links in the system default browser. I.e. a click on a link should not change the site in the QtWebView but it should open it with the default browser. I want to make it impossible to the user to change the site in the QtWebView. How can I do that? Thanks, Albert That does it: import sys, webbrowser from PyQt4.QtCore import * from PyQt4.QtGui import * from PyQt4.QtWebKit import * app = QApplication(sys.argv) web = QWebView() web.load(QUrl("http://www.az2000.de/projects/javascript-project/")) web.page()