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. grabFramebuffer() of QGLWidget not working with nvidia
Forum Updated to NodeBB v4.3 + New Features

grabFramebuffer() of QGLWidget not working with nvidia

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.3k Views 2 Watching
  • 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
    Anna234
    wrote on last edited by
    #1

    Hi I'm using grabFramebuffer() in my QGLWidget class to get a screenshot of my QGLWidget. It works fine on all systems I've got, but since moving to a NVIDIA card it does not work as expected. My QGLWidget is updated in the background (off screen rendering) and this does not seem to be represented in the grabFramebuffer() call on this particular nvidia card. I have to actually active the QGLWidget and have it print something on the screen for the grabFramebuffer() call to work. Does anyone have any experience with such a scenario? I have tried to explicitly activate the framebuffer with makeCurrent() but it does not help. It only ever returns me that last visible screen but not the stuff that has been rendered off screen. Other cards do that. Is there any alternative to the grabFramebuffer() function?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Anna234
      wrote on last edited by
      #2

      No one got any ideas?

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by SGaist
        #3

        Hi,

        That might be a nVidia driver bug. You should also specify which platform, driver version, nVidia card you are using.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • A Offline
          A Offline
          Anna234
          wrote on last edited by
          #4

          The card is the following device:

          VGA compatible controller: NVIDIA Corporation GK107GLM [Quadro K1100M] (rev a1)

          I'm using a 3.19 Linux kernel (hardened Gentoo).

          The nvidia driver I'm using is version 352.21.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Can you test your application on a machine that has a different nVidia card ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            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 Extensions
            • Unsolved