Questions tagged [qtwebengine]

QtWebEngine integrates the chromium rendering engine into Qt.

QtWebEngine integrates the Chromium rendering engine into Qt. Since QtWebKit was marked as deprecated in Qt 5.5, QtWebEngine is now the main web platform for Qt applications development.

QtWebEngine is only available for Qt 5.4 and newer. The list of supported platforms is yet restricted.

Qt official documentation is here

Project homepage

485 questions
0
votes
1 answer

Pass data from html to QT

I created an easy login form in html with a submit button that when I clicked it, a Javascript's function check if the login is correct or not. All put all files into a qrc file in QT and I wrote this code for run the program: login.pro QT +=…
0
votes
0 answers

PyQt5 eventFilter not running

I'm trying to make the url in my program automatically update as you click links in the browser and whatnot. The problem is that the eventFilter doesn't seem to run. Code can be found here
0
votes
1 answer

QT QWebchannel not able to access CPP object methods or properties

I'm using the QT 5.9 WebEngine framework to display web pages. I'm injecting javascript into a page when it loads, and want to allow the javascript to be able to access a QT object. I get the QWebchannel callback in JS to be invoked but the object…
Anand
  • 4,182
  • 6
  • 42
  • 54
0
votes
1 answer

PyQt WebEngineView interferes with MainMenu

I'm trying to create an application that contains a web browser within it, but when I add the web browser my menu bar visually disappears but functionally remains in place. The following are two images, one showing the…
aoh
  • 1,090
  • 2
  • 13
  • 25
0
votes
2 answers

PyQt5 crashes if I import QtWebEngineWidgets

I created a new Anaconda environment with Python 3.6. I installed PyQt5 with pip install PyQt5. I have this butt-simple program: from PyQt5 import QtWidgets #from PyQt5 import QtWebEngineWidgets app = QtWidgets.QApplication([]) As written, it…
BrenBarn
  • 242,874
  • 37
  • 412
  • 384
0
votes
1 answer

In Qt, how to remove all Certificate Authorities certificates from a QNetworkRequest?

We are trying to have complete control regarding which CA certificates a QNetworkRequest will be allowed to use. The first 'simple' test we wanted to run was to remove all CA certificates and make sure it triggers and error on any https…
Ad N
  • 7,930
  • 6
  • 36
  • 80
0
votes
1 answer

QtWebEngine to embedded linux cross-compilation fails

I'm trying to cross-compile my desktop project to a raspberry pi. My projects uses Qt 5.6, and QtWebEngine. I followed this guide: RaspberryPi2EGLFS It runs without the webengine-using parts, but I cannot use the WebEngine module because I cannot…
0
votes
1 answer

WebEngineView: image not loaded in a HTML when using 'loadHtml' with HTML content in a string

I am using a WebEngineView to show messages (like a chat), with the help of a WebChannel. I set a html from resources as url of the WebEngineView: WebEngineView { id: myChat ... url: "qrc:/res/test.html" ... } To…
Diego
  • 336
  • 2
  • 21
0
votes
0 answers

Deferred Resolve

I am trying to wrap a JS Async call with deferred so that I can get the response back. This function is a QtWebEngine function and hence it is asynchronous. However I want to be able to wait for the response. deferred = $.Deferred(); result =…
0
votes
1 answer

How to use createWindow in my code [Qt5.8]

In the following code , when new tab or window is requested by the site then it doesn't prints anything . How do I make my code working ? Please Help , I am too confused . Thanks ! class WebView:public QWebEngineView{ protected: QWebEngineView*…
learner
  • 3
  • 2
0
votes
3 answers

How to make QWebEngineView go fullscreen?

I have the following code, and I want to make my QWebEngineView (Qt 5.8) to go full screen. My WebView class is contained in a QTabWidget, so it just fills up the tab, not entire screen. How can I make it go fullscreen? class WebView:public…
Anmol Gautam
  • 949
  • 1
  • 12
  • 27
0
votes
1 answer

Qt WebEngine simulate Mouse Event

I want to simulate mouse Event in my Qt WebEngine app. I use PyQt5.8 , QT5.8. This is my code: def mouse_click(self, x, y): point = QPoint(int(x), int(y)) eventp =…
bestren
  • 89
  • 11
0
votes
1 answer

Qt WebEngine set socks5 proxy

I want to set socks5 proxy for my Qt WebEngine app. I use PyQt5.8 , QT5.8. I set up a socks5 server by danted v1.4.1. I test my socks5 server and it worked good. But when I use it in my app, danted log errors: error after reading 3 bytes in 0…
bestren
  • 89
  • 11
0
votes
1 answer

Qt/QML: WebEngineView and ScrollView

I have desktop app in which I have a ScrollView that contains a ListView, in which the delegates each contain multiple widgets, including a WebEngineView: ScrollView { id: myScrollView anchors.fill: parent; ListView { id:…
Addy
  • 2,414
  • 1
  • 23
  • 43
0
votes
1 answer

How to modify QtWebEngine behavior when link is clicked?

I have WebEngineView: WebEngineView { anchors.fill: parent } If I open, e.g. Google search page, and click on the links, nothing happens. But if I click right mouse button and select "follow link", the link is opened. How can I make QtWebEngine…
KolesnichenkoDS
  • 530
  • 1
  • 6
  • 20