Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. QWebEngineView and OpenGL rendering problem
Forum Updated to NodeBB v4.3 + New Features

QWebEngineView and OpenGL rendering problem

Scheduled Pinned Locked Moved Unsolved QtWebEngine
3 Posts 3 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    EIntemporel
    wrote on last edited by
    #1

    Hello everyone, I'm using a QWebEngineView into a QDialog that link to a simple website for documentation purpose, but since I started implementing rendering for some object using QOpenGLWidget, QOpenGLContext & QOpenGLFunctions_4_1_Core the QWebEngineView start to not show anything, the preview is full black.

    I'm thinking there is a conflict through both of these features in my application, my question is: Is there a way for me to restore back the context of my QWebEngineView when I open the QDialog for my documentation ?

    1 Reply Last reply
    0
    • G Offline
      G Offline
      GGnome
      wrote on last edited by
      #2

      I had the exact same problem. The solution is, to set the QQuick rendering to OpenGL before you initialize the App, as QWebEngineView is based on QQuick.

      QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenGL);

      1 Reply Last reply
      1
      • J Offline
        J Offline
        jars121
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • J jars121 referenced this topic on

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved