qtwebengine

Issue with “blanking screen” when running Qt application in fullscreen mode

非 Y 不嫁゛ 提交于 2021-02-11 17:41:49
问题 We have a Qt based browser application which uses QWebEninge under the hood. Currently we are fighting with an issue where the screen goes blank for a moment eacht time the window gets or looses the focus (f.ex. each time the QVirtualKeyboard becomes invoked). Following a Qt's recommendation, we tried to implement QWindowsWindowFunctions::setHasBorderInFullScreen prior to call of QMainWindow::showFullScreen() . But this results in an inacceptable reduction of the available window area, e.g.

Open PDF at specific page with Qt WebEngineView

隐身守侯 提交于 2021-02-08 05:57:35
问题 I want to create a simple PDF Viewer inside my Qt Application. Everything works fine, accept opening the PDF at a specific page over the URL. For example: url = "file:///D://Repo//PdfViewer//PdfViewer//test.pdf"; Works, but url = "file:///D://Repo//PdfViewer//PdfViewer//test.pdf#page=9"; dosent. I read somewhere, that chrome dosent offically support #page=x anymore, but I cant find futher information how to solve this. I face the same problem with this url in the Nano-Browser Example from Qt.

How to capture full web page using QtWebEngine?

此生再无相见时 提交于 2021-02-07 10:04:53
问题 I use the following code in a QWebEngineView object to capture a web page to an image: image=new QImage(w,h, QImage::Format_ARGB32); painter = new QPainter(image); render(painter); image->save(imagefilename); Unfortunately, it only renders part of the web page that is shown on the widget to the image. How to render the whole page to the image? 回答1: It is possible to hide webview and resize it to show the whole web page. I'm using PyQt5 (version 5.12), but the idea should apply to C++ Qt as

QML WebEngineView flick content

梦想与她 提交于 2021-02-07 03:38:31
问题 I'm trying to make a simple web-browser for desktop with Ubuntu 14.04 using QML and WebEngineView component. The application will be working on devices with touchpad so it would be nice to make the content displayed inside WebEngineView flickable. I tried to do it this way, but it does not work: ... WebEngineView { id: webView url: "http://google.com" width: parent.width height: winternet.height-navigationBar.height-iStatusBar.height-iBackButton.height anchors.top: navigationBar.bottom

QML WebEngineView flick content

浪子不回头ぞ 提交于 2021-02-07 03:36:27
问题 I'm trying to make a simple web-browser for desktop with Ubuntu 14.04 using QML and WebEngineView component. The application will be working on devices with touchpad so it would be nice to make the content displayed inside WebEngineView flickable. I tried to do it this way, but it does not work: ... WebEngineView { id: webView url: "http://google.com" width: parent.width height: winternet.height-navigationBar.height-iStatusBar.height-iBackButton.height anchors.top: navigationBar.bottom

QML WebEngineView flick content

倖福魔咒の 提交于 2021-02-07 03:35:25
问题 I'm trying to make a simple web-browser for desktop with Ubuntu 14.04 using QML and WebEngineView component. The application will be working on devices with touchpad so it would be nice to make the content displayed inside WebEngineView flickable. I tried to do it this way, but it does not work: ... WebEngineView { id: webView url: "http://google.com" width: parent.width height: winternet.height-navigationBar.height-iStatusBar.height-iBackButton.height anchors.top: navigationBar.bottom

Use webengine video and audio codecs

穿精又带淫゛_ 提交于 2021-02-05 06:46:33
问题 For my PyQt5 project, I am using the QWebEngineView , but certain videos, such as .mp4 videos won't play. Can I install the codecs with pip , or pass a certain argument through QApplication() or something similar in order to fix this problem? I installed PyQt5 through pip , so I don't have the C:\Qt\... files, only the PyQt5 , pyqt5_tools folders in Appdata\Local\Programs\Python\Python37\Lib\site-packages . I am using Python 3.7.2 , and PyQt5.11 回答1: The pyqtwebengine provided by pypi does

Python3: ImportError: /lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.15' not found

这一生的挚爱 提交于 2021-01-29 13:48:22
问题 I created a Window on Qt with Qt Designer and when I launch that app - I get ImportError. It feels like that library doesn't installed in my system. But the preview works in Qt Designer. Full code of design file: # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'map.ui' # # Created by: PyQt5 UI code generator 5.15.0 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing.