Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt opengl render video when disable graphics driver.

Qt opengl render video when disable graphics driver.

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 255 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.
  • Y Offline
    Y Offline
    yanghang
    wrote on 28 Apr 2020, 12:44 last edited by
    #1

    Now I develop a app, use qt opengl to render video, buth now I met a problem, a computer graphics driver not install, so when only can see a black screen.
    I can use setAttribute(Qt::AA_UseSoftwareOpenGL) to slove this prolem, but it cost 50% cpu.
    I want to use gpu to render when computer is good, and use softwareopengl when computer graphics has a problem.
    What should i do.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 28 Apr 2020, 13:38 last edited by
      #2

      Hi
      On the system with "issues" try calling
      https://doc.qt.io/qt-5/qopenglcontext.html#openGLModuleType
      or
      https://doc.qt.io/qt-5/qsurfaceformat.html#renderableType
      or try to create a context and see if its valid.

      1 Reply Last reply
      1

      1/2

      28 Apr 2020, 12:44

      • Login

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