Questions tagged [qwebengineview]

The QWebEngineView class provides a widget that is used to view and edit web documents

Documentation

322 questions
1
vote
1 answer

Cannot sign in to google in QWebEngineView: This app may not be secure

I'm a beginner to QT and I recently developed a simple desktop browser using QWebEngineView to view the google search page. Everything works fine but when I enter my email to sign in to my google account, it Says, Couldn't sign you in. This browser…
Dev-I-J
  • 49
  • 1
  • 8
1
vote
1 answer

How to get two values altogether on object clicked from QWebEngineView in PyQt5?

I have 2 files : one is MAIN.py and other is xpath_from_element.js. I used QWebEngineWidgets to display the web-page on the app, And linked both .py and .js to get TagNames/XPATH from the website when one clicks on it. I am currently getting…
Abhay Salvi
  • 890
  • 3
  • 15
  • 39
1
vote
1 answer

QwebEnginePage Doesn't print html code Qt

I Trying print Html using qwebenginepage but not working i searched a lot to resolve this problem but didn't found the answer . i was use QTextBrowser But when print it change style of page so i trying with qwebenginepage QWebEnginePage *view = new…
1
vote
1 answer

Is there any way to get class of the page in Pyqt5 in browser?

I am working with pyqt5. I want the user to click on the browser which should be embeded on my pyqt5 application to get the Class of the element which he/she is clicking on it. I just found on stack overflow that it's doable by combining javascript…
user11363434
1
vote
0 answers

QWebEngineUrlRequestInterceptor - get content response

I'm able to catch requested urls by installing custom request interceptor butQWebEngineUrlRequestInfo contains only urls. Is it also possible to catch content which is return by those requests? void…
Dibo
  • 1,159
  • 17
  • 34
1
vote
0 answers

Hide Reload action in Qt context menu

I want to hide the Reload option from the default context menu of Qt webenginepage. I have already removed other options such as Save page and View source doing this : WebPage::WebPage(QObject *parent) : QWebEnginePage(parent) { …
1
vote
1 answer

How to print from QWebEngineView

I am trying to print a report from within my application, which involves both text and tables. Since QTextDocument won't be sufficient, I've decided to go with QWebEngineView and more sophisticated HTML/CSS which is not supported by the Qt rich text…
user826955
  • 3,137
  • 2
  • 30
  • 71
1
vote
1 answer

Get variable from js QWebEngineView to python

Get variable from js QWebEngineView to python. I am using PyQt5 with QT Designer of python3 and I am using QWebEngineView to load an html and js. Inside the html there is an input and a button, pressing the button executes a js function that saves…
Oni
  • 41
  • 8
1
vote
1 answer

Qt5-QML: automatic authentication username and password with on a third party device

After understanding how to integrate JavaScript functions into Qt-QML I am now trying to apply what I have learned in my previous post to a small real world example in my lab. I am trying to access to my robots via wi-fi using using a third party…
Emanuele
  • 2,194
  • 6
  • 32
  • 71
1
vote
0 answers

Accessing the local storage in a QWebEngineView

I am using PyQt5 to display a web page with a QWebEngineView and I want to access the local storage of the current page (i.e. read the key-value pairs stored there). I know that I can get the path where the local storage is located in a level-db on…
Bobface
  • 2,782
  • 4
  • 24
  • 61
1
vote
0 answers

QwebEngineView doesn't show anything

I have created a piece of code that show a simple webpage (a bokeh graph saved in an html file). This code is working in Windows 10 at work, but on macos-mojave, using PyQT5.9, with Python 3.6, the opened window don't show anything, and makes python…
Titus
  • 11
  • 3
1
vote
1 answer

Use QWebEngineView to Display Something Larger Than 2MB?

I'm trying to display some Plot.ly or Plot.ly Dash plots ( I haven't settled on using one or the other, so I'm experimenting with both right now) in a PyQt5 GUI using QWebEngineView. This doesn't work for any plots larger than 2MB due to some…
squiiidz
  • 83
  • 1
  • 12
1
vote
2 answers

Qt Event Propagation in QWebEngineView

I have a function named generate_input_event. I'm trying to use this function to simulate a keypress within a QWebEngineView. def generate_input_event(window_id, key_code, modifiers, low_level_data, x, y): modifiers_flag =…
jmercouris
  • 348
  • 5
  • 17
1
vote
1 answer

Showing (youtube)-videos in a QWebEngineView

I'm having a WebBrowser application that uses the QWebEngineView (Qt 5.9). I want to load a page, where a Youtube video is embedded. The page loads perfectly but the video is not working. The message I get when it tries to start is:Requests to the…
Vanessa
  • 49
  • 8
1
vote
1 answer

PyQt5 retrieve form values using runJavaScript

I have a form.html file and i run it using PyQt5 QWebEngineView. I want to retrieve form values after the Submit button is clicked. I've gone through many solutions but cannot find the perfect one. Eg: I found this one but it works on URL…
Enzy
  • 155
  • 2
  • 15