qtwebengine

How to compile Qt webengine (5.11) on Windows with proprietary codecs

心不动则不痛 提交于 2019-12-29 04:58:11
问题 I have a lot of trouble compiling Qt webengine to enable proprietary codecs , documentation is not very clear. I followed others instructions on stackoverflow but it doesn't work. I got error like: Project ERROR: Cannot run compiler 'cl'. Output: =================== =================== Maybe you forgot to setup the environment? OR Needs VS 2015 Update 3 with Cumulative Servicing Release or higher Qt WebEngine will not be built. OR Could not detect Windows SDK Version ('WindowsSDKVersion'

QtCreator 4.1.0 dosn't show webengineview(QT 5.7) for MainWindow form editor

笑着哭i 提交于 2019-12-24 07:58:44
问题 I'm porting my app from QT 5.5 to QT 5.7. So I need to change WebKit to QWebeEngine, but I can't find QWebEngineView from Widget browser in Visual editor. How I get the QWebEngineView to Widget list. I have added QT += webenginewidgets to PRO file but it dosen't show the widgets. 回答1: Do you need the QWebEngineView in the Widget palette for any specific reason? You can use any of the web engine widgets directly from code (although it is of course not as simple as a drag-and-drop). As a simple

Web Engine in Qt

烈酒焚心 提交于 2019-12-24 04:48:08
问题 I have installed the new community version of Qt 5.8 using the Windows installer. Kits for mingw MSVC++ 2013. I have the compilers for msvc++ 2013. I have checked the webengine option too. I was looking to make a simple browser in qt webengine and I get the error error: Unknown module(s) in QT: webenginewidgets I have used QT += webenginewidgets in the pro file and, run qmake and I'm still stuck with the same issue. I am little bit confused since I cannot find anything that could help me

how Make any link (_blank) open in same window using QWebEngine

孤街浪徒 提交于 2019-12-24 03:25:43
问题 I'm developing a web browser in Python PyQt5 using QWebEngine. Everything is working fine but when someone click on the blank targeted link it shows blank. I want to open all type of links in same window. If we right click and "follow link" then it works but when we simply click on the link it doesn't working. _blank targeted links should also open in the same window not in newtab <a href='https://google.com' target='_blank'>test</a> Here is my code from PyQt5.QtWebEngineWidgets import * from

Zoom feature for QWebEngine does not work

醉酒当歌 提交于 2019-12-24 00:48:05
问题 I created simple project for displaying local .html page. I used Qt5.4 with QWebView there. But after switching to Qt5.6 I noticed that Qt WebKit is deprecated and not supported any more. Thus I decided to replace Qt WebKit functionality with one from the Qt WebEngine. After replacing QWebView with QWebEngineView I investigated that setZoomFactor method has no effect. Is it known issue? How can I handle with this? EDIT: An interesting thing have been investigated recently. I use setHtml

Expose C++ object to Javascript in Qt with QtWebEngine

China☆狼群 提交于 2019-12-23 08:46:27
问题 With QtWebkit it is possible to expose C++ objects to Javascript via QWebFrame::addToJavaScriptWindowObject as described in https://stackoverflow.com/a/20685002/595937 Can the same thing be accomplished in Qt 5.4 using QtWebEngine? 回答1: Exporting C++ objects to HTML/JS is not directly possible with QWebEngine. Instead, the newly introduced QWebChannel provides a bridge between HTML/JS and C++. Have a look at the documentation, especially at the examples. There was also a quite good

Expose C++ object to Javascript in Qt with QtWebEngine

早过忘川 提交于 2019-12-23 08:46:07
问题 With QtWebkit it is possible to expose C++ objects to Javascript via QWebFrame::addToJavaScriptWindowObject as described in https://stackoverflow.com/a/20685002/595937 Can the same thing be accomplished in Qt 5.4 using QtWebEngine? 回答1: Exporting C++ objects to HTML/JS is not directly possible with QWebEngine. Instead, the newly introduced QWebChannel provides a bridge between HTML/JS and C++. Have a look at the documentation, especially at the examples. There was also a quite good

Render web content offscreen using QtWebEngine

泪湿孤枕 提交于 2019-12-22 09:07:21
问题 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

Project ERROR: Unknown module(s) in QT: webengine

大兔子大兔子 提交于 2019-12-22 08:30:05
问题 I have compiled a framebuffer (without x11 and wayland) image for wandboard-quad with Yocto Jethro. I have used the Freescale Community BSP Jethro branch.The image contains most of the Qt 5.5 components and Qt Web Engine. The qmake version is 5.5.1 from meta-toolchain-qt5 and Qt Creator is 5.5 as well. I created the quick nano browser example to test the functionalities. But, Qt Creator gives me this Project ERROR: Unknown module(s) in QT: webengine when I cross compile to wandboard. Desktop

Project ERROR: Unknown module(s) in QT: webengine

匆匆过客 提交于 2019-12-22 08:29:23
问题 I have compiled a framebuffer (without x11 and wayland) image for wandboard-quad with Yocto Jethro. I have used the Freescale Community BSP Jethro branch.The image contains most of the Qt 5.5 components and Qt Web Engine. The qmake version is 5.5.1 from meta-toolchain-qt5 and Qt Creator is 5.5 as well. I created the quick nano browser example to test the functionalities. But, Qt Creator gives me this Project ERROR: Unknown module(s) in QT: webengine when I cross compile to wandboard. Desktop