Skip to content

QtWebEngine

Discussions and questions on QtWebEngine
1.3k Topics 3.9k Posts
  • QWebEngineView and OpenGL rendering problem

    Unsolved 20 Apr 2024, 08:56
    0 Votes
    3 Posts
    1k Views
    Thank you @GGnome ! I was having a slightly different problem (ghosting, tearing, stuttering, flickering, etc.) and I use the QQuickWindow line you've posted above and it completely fixed it. I don't remember seeing anything about that particular setting in the documentation...I must have missed it.
  • handling QWebEngineCertificateError

    Solved 22 Oct 2024, 21:39
    0 Votes
    2 Posts
    609 Views
    Problem solved. server name was not set up in /etc/hosts after reinstalling Ubuntu.
  • Cannot find gn when configuring QtWebEngine

    Unsolved 23 Oct 2024, 06:47
    0 Votes
    2 Posts
    600 Views
    @_qt-qt_ Please either run configure with -v parameter or do what it suggests: Configure with --log-level=STATUS Then you will get more details, else nobody can tell why it is not detected.
  • QtWebEngine signing issue

    Unsolved 18 Oct 2024, 10:03
    0 Votes
    1 Posts
    169 Views
    No one has replied
  • This topic is deleted!

    Unsolved 18 Oct 2024, 08:55
    0 Votes
    1 Posts
    8 Views
    No one has replied
  • 0 Votes
    1 Posts
    196 Views
    No one has replied
  • QT5WebEngine Crashing

    Unsolved 3 Oct 2024, 18:33
    0 Votes
    2 Posts
    553 Views
    Any help here please!
  • 0 Votes
    2 Posts
    687 Views
    For us it works with: // Disable pinch zoom in web browser qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--disable-pinch");
  • Z-order issue for transparent WebengineViews in Qt6

    Unsolved 10 Oct 2024, 12:44
    0 Votes
    1 Posts
    218 Views
    No one has replied
  • 0 Votes
    3 Posts
    405 Views
    @jsulm no for sure ..... i try only the default installation with default project example before try to use open62541 on these new SO .... for check if all work. Pherhaps qtcreator 14 (desktop devlopment) is different from previous install on LMDE6 ... not understand how can change it .... seems compiler default is ninja .... not understand how to obligate system to use gcc .... there are not "set as default" options ... [image: 7267eb89-7cda-4708-8061-0b46ec50aec5.png]
  • 0 Votes
    1 Posts
    340 Views
    No one has replied
  • 0 Votes
    20 Posts
    2k Views
    @7erg Does it help to reduce the number of parallel build processes?
  • PySide 6 - Missing libwebgl.so

    Unsolved 17 Sept 2024, 04:52
    0 Votes
    1 Posts
    202 Views
    No one has replied
  • 0 Votes
    2 Posts
    402 Views
    it's ok ,configure add " -qt-libjpeg -qt-libpng " parameters
  • 0 Votes
    3 Posts
    773 Views
    it's resolve on debian 11,the problem repeat on debian 12
  • QtWebEngine signing issues

    Solved 28 Apr 2019, 02:26
    1 Votes
    21 Posts
    11k Views
    Just in case you stumble onto this issue, the Qt Documentation now contains instructions cf https://doc.qt.io/qt-6/qtwebengine-deploying.html#macos-specific-deployment-steps Here is the content of the QtWebEngineCore.framework/Helpers/QtWebEngineProcess.app/Contents/Resources/QtWebEngineProcess.entitlements for reference, for my macos install, v 6.5.2 $ cat /Users/julien/Qt/6.5.2/macos/lib/QtWebEngineCore.framework/Versions/A/Helpers/QtWebEngineProcess.app/Contents/Resources/QtWebEngineProcess.entitlements <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>com.apple.security.cs.allow-unsigned-executable-memory</key> <true/> <key>com.apple.security.cs.disable-library-validation</key> <true/> <key>com.apple.security.cs.allow-jit</key> <true/> <key>com.apple.security.cs.disable-executable-page-protection</key> <true/> </dict> </plist>
  • buildroot for qt 5.15.2 compile!

    Unsolved 4 Sept 2024, 06:54
    0 Votes
    5 Posts
    947 Views
    @lille said in buildroot for qt 5.15.2 compile!: Be sure must install libharfbuzz-dev package in host developer? No. If you're cross compiling then all needed libraries/headers have to be in your sysroot.
  • 0 Votes
    1 Posts
    202 Views
    No one has replied
  • QtWebEngine and JS Integration

    Unsolved 15 Aug 2024, 15:06
    0 Votes
    7 Posts
    1k Views
    @emircanacardev said in QtWebEngine and JS Integration: WebEngineScriptCollection is not support the qt 5.x i think. Am i right. Qt 5.15 didn't have WebEngineScriptCollection, but it still has a list of user scripts: https://doc.qt.io/qt-5/qml-qtwebengine-webengineview.html#userScripts-prop // script.js document.body.style.background = "#00aaaa" // *.qml in Qt 5.15 WebEngineView { id: webView anchors.fill: parent url: "chrome://gpu" WebEngineScript { id: script sourceUrl: Qt.resolvedUrl("scripts.js") } Component.onCompleted: webView.userScripts.push(script) } // *.qml in Qt 6.7 WebEngineView { id: webView anchors.fill: parent url: "chrome://gpu" Component.onCompleted: { let script = WebEngine.script() script.sourceUrl = Qt.resolvedUrl("scripts.js") webView.userScripts.insert(script) } }
  • when running the code of webengineview,came the errors

    Unsolved 23 Aug 2024, 11:43
    0 Votes
    3 Posts
    449 Views
    when I resize the qwebengineview,the errors came out.I guess maybe it was caused by the chorum ui threads. cause When I resized the qwebengineview very quickly then the program crashed.heres the detail information. by the way.are there any ways that could resize the qwebengineview normally? code_text [opengl\qopenglframebufferobject.cpp line 570] OpenGL Error: 1281 QOpenGLFramebufferObject: Framebuffer incomplete attachment. QOpenGLFramebufferObject: Framebuffer incomplete attachment. QOpenGLFramebufferObject: Framebuffer incomplete attachment. QOpenGLFramebufferObject: Framebuffer incomplete attachment. QOpenGLFramebufferObject: Framebuffer incomplete, missing attachment. [opengl\qopenglframebufferobject.cpp line 802] OpenGL Error: 1281 [opengl\qopenglframebufferobject.cpp line 570] OpenGL Error: 1281 QOpenGLFramebufferObject: Framebuffer incomplete attachment. QOpenGLFramebufferObject: Framebuffer incomplete attachment. QOpenGLFramebufferObject: Framebuffer incomplete attachment. QOpenGLFramebufferObject: Framebuffer incomplete attachment. QOpenGLFramebufferObject: Framebuffer incomplete, missing attachment. [opengl\qopenglframebufferobject.cpp line 802] OpenGL Error: 1281 [7,484:6,388:0827/213650.756:ERROR:gles2_cmd_decoder.cc(5,678)] GLES2DecoderImpl::ResizeOffscreenFramebuffer failed to allocate storage due to excessive dimensions. [7,484:6,388:0827/213650.756:ERROR:gles2_cmd_decoder.cc(5,678)] GLES2DecoderImpl::ResizeOffscreenFramebuffer failed to allocate storage due to excessive dimensions. [7,484:6,388:0827/213650.756:ERROR:gles2_cmd_decoder.cc(5,827)] GLES2DecoderImpl: Context lost because ResizeOffscreenFramebuffer failed. [7,484:6,388:0827/213650.757:ERROR:gles2_cmd_decoder.cc(5,963)] Error: 5 for Command kResizeCHROMIUM [7,484:6,388:0827/213650.757:ERROR:in_process_command_buffer.cc(375)] MakeCurrent failed because context lost. [7,484:6,388:0827/213650.756:ERROR:gles2_cmd_decoder.cc(5,827)] GLES2DecoderImpl: Context lost because ResizeOffscreenFramebuffer failed. [7,484:6,388:0827/213650.757:ERROR:gles2_cmd_decoder.cc(5,963)] Error: 5 for Command kResizeCHROMIUM [7,484:6,388:0827/213650.757:ERROR:in_process_command_buffer.cc(375)] MakeCurrent failed because context lost. [7,484:6,388:0827/213650.766:ERROR:in_process_command_buffer.cc(375)] MakeCurrent failed because context lost. [7,484:6,388:0827/213650.766:ERROR:in_process_command_buffer.cc(375)] MakeCurrent failed because context lost. [7,484:6,388:0827/213650.852:ERROR:gles2_cmd_decoder.cc(5,678)] GLES2DecoderImpl::ResizeOffscreenFramebuffer failed to allocate storage due to excessive dimensions. [7,484:6,388:0827/213650.852:ERROR:gles2_cmd_decoder.cc(5,827)] GLES2DecoderImpl: Context lost because ResizeOffscreenFramebuffer failed. [7,484:6,388:0827/213650.852:ERROR:gles2_cmd_decoder.cc(5,678)] GLES2DecoderImpl::ResizeOffscreenFramebuffer failed to allocate storage due to excessive dimensions. [7,484:6,388:0827/213650.852:ERROR:gles2_cmd_decoder.cc(5,963)] Error: 5 for Command kResizeCHROMIUM [7,484:7,364:0827/213650.852:ERROR:program_binding.cc(257)] Error compiling shader: shader program: #define TexCoordPrecision highp attribute float a_index; attribute TexCoordPrecision vec4 a_position; uniform TexCoordPrecision vec2 quad[4]; uniform mat4 matrix; void main() { // Compute indices for uniform arrays. int vertex_index = int(a_index); // Compute the position. vec4 pos = vec4(quad[vertex_index], a_position.z, a_position.w); gl_Position = matrix * pos; } [7,484:6,388:0827/213650.852:ERROR:gles2_cmd_decoder.cc(5,827)] GLES2DecoderImpl: Context lost because ResizeOffscreenFramebuffer failed. [7,484:6,388:0827/213650.852:ERROR:gles2_cmd_decoder.cc(5,963)] Error: 5 for Command kResizeCHROMIUM [7,484:7,364:0827/213650.852:ERROR:program_binding.cc(257)] Error compiling shader: shader program: #define TexCoordPrecision highp attribute float a_index; attribute TexCoordPrecision vec4 a_position; uniform TexCoordPrecision vec2 quad[4]; uniform mat4 matrix; void main() { // Compute indices for uniform arrays. int vertex_index = int(a_index); // Compute the position. vec4 pos = vec4(quad[vertex_index], a_position.z, a_position.w); gl_Position = matrix * pos; } [7,484:7,364:0827/213650.852:FATAL:program_binding.h(453)] Check failed: IsContextLost(context_provider->ContextGL()). Backtrace: QWebEngineUrlSchemeHandler::qt_static_metacall [0x54,2B3,345+820,181] QWebEngineUrlSchemeHandler::qt_static_metacall [0x54,2C5,644+894,676] QWebEngineUrlSchemeHandler::qt_static_metacall [0x54,2C5,6DC+894,828] QWebEngineUrlSchemeHandler::qt_static_metacall [0x54,1F7,046+49,366] GetHandleVerifier [0x55,67A,44E+20,479,374] GetHandleVerifier [0x55,67A,233+20,478,835] GetHandleVerifier [0x55,67D,7DD+20,492,573] GetHandleVerifier [0x55,674,E75+20,457,397] GetHandleVerifier [0x55,672,8B5+20,447,733] GetHandleVerifier [0x55,662,A4D+20,382,605] GetHandleVerifier [0x55,662,B49+20,382,857] GetHandleVerifier [0x55,662,3B7+20,380,919] GetHandleVerifier [0x55,63A,DDE+20,219,678] GetHandleVerifier [0x55,635,479+20,196,793] GetHandleVerifier [0x55,634,8E8+20,193,832] GetHandleVerifier [0x55,635,70A+20,197,450] QtWebEngineCore::JavaScriptDialogController::qt_static_metacall [0x51,814,773+1,925,219] QtWebEngineCore::JavaScriptDialogController::qt_static_metacall [0x51,814,7B9+1,925,289] QtWebEngineCore::JavaScriptDialogController::qt_static_metacall [0x51,81E,C44+1,967,412] QtWebEngineCore::JavaScriptDialogController::qt_static_metacall [0x51,825,AB4+1,995,684] QtWebEngineCore::WebEngineSettings::setWebContentsAdapter [0x51,521,165+3,173] TargetNtUnmapViewOfSection [0x53,F12,EB5+26,061,381] QtWebEngineCore::JavaScriptDialogController::qt_static_metacall [0x51,68D,3C0+322,736] QtWebEngineCore::JavaScriptDialogController::qt_static_metacall [0x51,68D,6B5+323,493] QtWebEngineCore::JavaScriptDialogController::qt_static_metacall [0x51,68D,B44+324,660] QtWebEngineCore::JavaScriptDialogController::qt_static_metacall [0x51,68F,606+331,510] QtWebEngineCore::WebEngineSettings::setWebContentsAdapter [0x51,521,165+3,173] QWebEngineUrlSchemeHandler::qt_static_metacall [0x54,20F,5C1+149,073] GetHandleVerifier [0x54,302,B4F+66,703] GetHandleVerifier [0x54,302,486+64,966] QWebEngineUrlSchemeHandler::qt_static_metacall [0x54,2CD,44B+926,939] GetHandleVerifier [0x54,303,31C+68,700] QWebEngineUrlSchemeHandler::qt_static_metacall [0x54,23C,4DB+333,163] QWebEngineUrlSchemeHandler::qt_static_metacall [0x54,23C,294+332,580] QWebEngineUrlSchemeHandler::qt_static_metacall [0x54,243,102+360,850] QWebEngineUrlSchemeHandler::qt_static_metacall [0x54,243,C0C+363,676] QWebEngineUrlSchemeHandler::qt_static_metacall [0x54,200,49C+87,340] BaseThreadInitThunk [0x75,957,D69+25] RtlInitializeExceptionChain [0x76,F2B,B9B+107] RtlClearBits [0x76,F2B,B1F+191] Task trace: Backtrace: GetHandleVerifier [0x55,636,56B+20,201,131] GetHandleVerifier [0x54,737,E49+4,478,857] GetHandleVerifier [0x55,547,CA7+19,224,039] GetHandleVerifier [0x57,B25,FEB+58,931,499] GetHandleVerifier [0x55,4F9,72B+18,903,147] IPC message handler context: 0x85F9598B [7,484:7,364:0827/213650.852:FATAL:program_binding.h(453)] Check failed: IsContextLost(context_provider->ContextGL()). Backtrace: QWebEngineUrlSchemeHandler::qt_static_metacall [0x54,2B3,345+820,181] QWebEngineUrlSchemeHandler::qt_static_metacall [0x54,2C5,644+894,676] QWebEngineUrlSchemeHandler::qt_static_metacall [0x54,2C5,6DC+894,828] QWebEngineUrlSchemeHandler::qt_static_metacall [0x54,1F7,046+49,366] GetHandleVerifier [0x55,67A,44E+20,479,374] GetHandleVerifier [0x55,67A,233+20,478,835] GetHandleVerifier [0x55,67D,7DD+20,492,573] GetHandleVerifier [0x55,674,E75+20,457,397] GetHandleVerifier [0x55,672,8B5+20,447,733] GetHandleVerifier [0x55,662,A4D+20,382,605] GetHandleVerifier [0x55,662,B49+20,382,857] GetHandleVerifier [0x55,662,3B7+20,380,919] GetHandleVerifier [0x55,63A,DDE+20,219,678] GetHandleVerifier [0x55,635,479+20,196,793] GetHandleVerifier [0x55,634,8E8+20,193,832] GetHandleVerifier [0x55,635,70A+20,197,450] QtWebEngineCore::JavaScriptDialogController::qt_static_metacall [0x51,814,773+1,925,219] QtWebEngineCore::JavaScriptDialogController::qt_static_metacall [0x51,814,7B9+1,925,289] QtWebEngineCore::JavaScriptDialogController::qt_static_metacall [0x51,81E,C44+1,967,412] QtWebEngineCore::JavaScriptDialogController::qt_static_metacall [0x51,825,AB4+1,995,684] QtWebEngineCore::WebEngineSettings::setWebContentsAdapter [0x51,521,165+3,173] TargetNtUnmapViewOfSection [0x53,F12,EB5+26,061,381] QtWebEngineCore::JavaScriptDialogController::qt_static_metacall [0x51,68D,3C0+322,736] QtWebEngineCore::JavaScriptDialogController::qt_static_metacall [0x51,68D,6B5+323,493] QtWebEngineCore::JavaScriptDialogController::qt_static_metacall [0x51,68D,B44+324,660] QtWebEngineCore::JavaScriptDialogController::qt_static_metacall [0x51,68F,606+331,510] QtWebEngineCore::WebEngineSettings::setWebContentsAdapter [0x51,521,165+3,173] QWebEngineUrlSchemeHandler::qt_static_metacall [0x54,20F,5C1+149,073] GetHandleVerifier [0x54,302,B4F+66,703] GetHandleVerifier [0x54,302,486+64,966] QWebEngineUrlSchemeHandler::qt_static_metacall [0x54,2CD,44B+926,939] GetHandleVerifier [0x54,303,31C+68,700] QWebEngineUrlSchemeHandler::qt_static_metacall [0x54,23C,4DB+333,163] QWebEngineUrlSchemeHandler::qt_static_metacall [0x54,23C,294+332,580] QWebEngineUrlSchemeHandler::qt_static_metacall [0x54,243,102+360,850] QWebEngineUrlSchemeHandler::qt_static_metacall [0x54,243,C0C+363,676] QWebEngineUrlSchemeHandler::qt_static_metacall [0x54,200,49C+87,340] BaseThreadInitThunk [0x75,957,D69+25] RtlInitializeExceptionChain [0x76,F2B,B9B+107] RtlClearBits [0x76,F2B,B1F+191] Task trace: Backtrace: GetHandleVerifier [0x55,636,56B+20,201,131] GetHandleVerifier [0x54,737,E49+4,478,857] GetHandleVerifier [0x55,547,CA7+19,224,039] GetHandleVerifier [0x57,B25,FEB+58,931,499] GetHandleVerifier [0x55,4F9,72B+18,903,147] IPC message handler context: 0x85F9598B