Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. pyqt5 QWebEngineView turns black screen after long time running?
Qt 6.12 LTS is out! See what's new in the release blog

pyqt5 QWebEngineView turns black screen after long time running?

Scheduled Pinned Locked Moved Unsolved QtWebEngine
2 Posts 1 Posters 1.0k 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.
  • A Offline
    A Offline
    ArthurPYQT
    wrote on last edited by
    #1

    To test the stability of my program, I open the program for a night. I opened the desktop to find QWebengineView area turns black. How come?

    A 1 Reply Last reply
    0
    • A ArthurPYQT

      To test the stability of my program, I open the program for a night. I opened the desktop to find QWebengineView area turns black. How come?

      A Offline
      A Offline
      ArthurPYQT
      wrote on last edited by
      #2

      @ArthurPYQT

          QGuiApplication.setAttribute(Qt.ApplicationAttribute.AA_UseSoftwareOpenGL)
          QCoreApplication.setAttribute(Qt.ApplicationAttribute.AA_UseSoftwareOpenGL)
          QApplication.setAttribute(Qt.ApplicationAttribute.AA_UseSoftwareOpenGL)
      

      after set these attributes above, everytime I start the program, the cmd
      line reads:

      ARB::createContext: wglCreateContextAttribsARB() failed (GL error code: 0x0) for format: QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile), shared context: 0x2 (operation done.)
      GDI::createContext: wglCreateContext failed. (operation done.)
      Unable to create a GL Context.
      qt.qpa.backingstore: composeAndFlush: QOpenGLContext creation failed
      qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
      
      1 Reply Last reply
      0

      • Login

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