Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Is it possible to control where widgets get rendered to?
Forum Updated to NodeBB v4.3 + New Features

Is it possible to control where widgets get rendered to?

Scheduled Pinned Locked Moved Solved Qt for Python
4 Posts 3 Posters 408 Views 1 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.
  • N Offline
    N Offline
    neo-mashiro
    wrote on last edited by
    #1

    AFAIK the default rendering of standard widgets is in 8-bit color and typically tied to the native windowing system's framebuffer. I wonder if there's a way to change that to a custom QOffscreenSurface and QOpenGLFramebufferObject with support for color space selection. I have a PyQt app on Linux and I'd like to enable (fake) HDR on the entire UI. My naive idea is to render everything onto a custom framebuffer (e.g. GL_RGBA16F) and then perform color management. I'm not sure if this is possible though.

    I was hoping that it is as simple as tweaking all the stylesheets, but that doesn't seem to be feasible at all :(

    1 Reply Last reply
    0
    • GrecKoG Offline
      GrecKoG Offline
      GrecKo
      Qt Champions 2018
      wrote on last edited by
      #3

      There is some work happening regarding this subject lately.
      You could take a look at https://bugreports.qt.io/browse/QTBUG-129499 and its child issues and related gerrit links.
      I guess you'll have to wait a bit but you can follow the progress along.

      N 1 Reply Last reply
      2
      • J Offline
        J Offline
        john mathew25
        wrote on last edited by
        #2
        This post is deleted!
        1 Reply Last reply
        0
        • GrecKoG Offline
          GrecKoG Offline
          GrecKo
          Qt Champions 2018
          wrote on last edited by
          #3

          There is some work happening regarding this subject lately.
          You could take a look at https://bugreports.qt.io/browse/QTBUG-129499 and its child issues and related gerrit links.
          I guess you'll have to wait a bit but you can follow the progress along.

          N 1 Reply Last reply
          2
          • N neo-mashiro has marked this topic as solved on
          • GrecKoG GrecKo

            There is some work happening regarding this subject lately.
            You could take a look at https://bugreports.qt.io/browse/QTBUG-129499 and its child issues and related gerrit links.
            I guess you'll have to wait a bit but you can follow the progress along.

            N Offline
            N Offline
            neo-mashiro
            wrote on last edited by
            #4

            @GrecKo Thanks! That's very helpful~

            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