Questions tagged [qtwebview]

28 questions
4
votes
2 answers

QT: module "QtWebView" is not installed

My OS is win10 and the version of QT is Qt5.7 mingw53_32 and the target os is win10. when I use qmlscene to excute a qml file, it occurred some error: qrc:/[...].qml:3 module "QtWebView" is not installed My qml file is following. import QtQuick…
zonzely
  • 395
  • 3
  • 6
  • 17
2
votes
1 answer

Qt WebView and WebChannel over WebSockets in QML

I want to access QtObject from HTML-page running in WebView - invoke methods, read/write properties, etc. As far as I understood, I need to establish WebSockets connection between QML and HTML sides, and then use it as a transport for…
retif
  • 1,495
  • 1
  • 22
  • 40
2
votes
1 answer

How to get QtWebKitWidgets.QWebView to work with qt designer

I want to integrate/show a web page (url) section on my main window. I use anaconda, pyqt (5.6) and designer. I added a QWebView on my main form via designer. But I can't run it. The error I get when I try to run the main window…
shafuq
  • 465
  • 6
  • 20
2
votes
2 answers

Display SVG image in QtWebView with the right size

I'm trying to display some Wikipedia articles containing math in SVG images in QtWebView, though I can't figure out how to set width and height attributes of the image. QtWebView will ignore these attributes and when I omit them the image is very…
xralf
  • 3,312
  • 45
  • 129
  • 200
2
votes
1 answer

Can QWebView load *.js from Qt resource files and run them?

I have qrc file that looks like this: ../web/assets.js ../web/index.html Inside assets.js Just adding function for allert popup: …
marcin
  • 125
  • 1
  • 14
2
votes
0 answers

Javascript debugging in qt webkit

I'm trying to debug java-script with qt web-kit, but it's not working. I right click on qt web-view and choose "Inspect", in inspector window, I go to "Scripts" tab, I choose "Only enable for this session / Always enable" then press "Enable…
M.H.
  • 223
  • 3
  • 10
  • 23
1
vote
0 answers

Multiple QWebEngineProcesses created by QWebEngineView eats up memory

In my application I have a list of buttons and clicking on each creates a new QWebEngineView in a QMainWindow. On closing the QMainWindow I want the QWebEngineView (and the QWebEngineProcess that it spawns) to be destroyed. But this does not happen…
Lizzzz90
  • 125
  • 1
  • 1
  • 8
1
vote
1 answer

How to use QtWebEngine createWindow in PyQt5

I am trying to make a window that contains a QWebEngineView. Now I want the browser to be able to handle the create window or _blank type triggers, or specifically to open a URL in a new window when required. In the below code, when there is…
Hack Try
  • 471
  • 4
  • 17
1
vote
1 answer

Disable horizontal scroll bar in QWebView Qt5

I'm having a problem with the scroll bar in Qt5.4. Right now, I'm trying to display a webpage in a Qt Application, and I do this by adding a Qwebview widget inside a Qdialog, everything works fine, except that I would like to disable the horizontal…
Jerry
  • 21
  • 1
  • 6
1
vote
2 answers

Read http header in qt webengine

I want to capture server http response in qt demo browser and check the header fields. How to implement this using qt webengine? I also saw QWebEngineUrlRequestInterceptor but using this class we cant read http header fields.
alireza
  • 21
  • 4
1
vote
1 answer

Current view doesn't support this command for Qml application with Qt WebDriver and Selenium

I want to test Qml application with Qt WebDriver. I installed Qt 5.2.1 version and Qt Driver. After it integrated an application with QtWebDriver, according to Use QtWebDriver to run your application. main.cc looks like following: #define…
catch23
  • 17,519
  • 42
  • 144
  • 217
1
vote
0 answers

Why Qt5 QtWebView just for QML Application on Android and IOS

Qt5 QtWebView use the native webview apis to show web pages, and it's a good idea. But why does QtWebView just support QML application? I designed my mobile apps for Android and IOS. I chose Qt5, because it took only one day to design 10 pages of…
tianlang
  • 31
  • 4
1
vote
1 answer

Alternative to QWebView()

Since QWebView() is probably not available in Ubuntu 16.10 onwards, what is the alternate possibility to do something like the following: view = QWebView() view.load(QUrl('http://example.com')
Ankit
  • 130
  • 3
  • 13
1
vote
1 answer

How to use QML QtWebView to call C++?

With Qt 5.5, using the Minibrowser example they provide, it uses something different than QWebView widget. Instead, it uses QML and a QtWebView module. When you look in Javascript's navigator.appVersion, it lets you know that QWebView loads a custom…
Volomike
  • 23,743
  • 21
  • 113
  • 209
0
votes
1 answer

how to get the full URL from a QML WebView

When clicking on a link inside of a QT Quick WebView (something like "http://example.com/page?abc=def&bca=fde"), the url property doesn't contain the query string (giving only "http://example.com/page"). I tried console.log(webView.url) (webView…
1
2