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. Render directly to screen
Qt 6.11 is out! See what's new in the release blog

Render directly to screen

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 2.9k 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.
  • J Offline
    J Offline
    jdarnold
    wrote on last edited by
    #1

    Is there a way in Qt to render "directly" to the screen, without first drawing to a QImage and using drawImage? I want to pass a buffer to another thread that just writes to this buffer, knowing nothing about Qt, and have the images show up in my Qt Widget automatically, without triggering an update or doing a drawImage. Something like provided by Windows in with DIBSection.

    1 Reply Last reply
    0
    • E Offline
      E Offline
      ehposeidon.no
      wrote on last edited by
      #2

      I have done this once some time ago, (but in Qt4), but cannot find what I did.

      Qt::WA_PaintOnScreen can be a starting point.

      1 Reply Last reply
      0
      • Y Offline
        Y Offline
        yogesh
        wrote on last edited by
        #3

        It could be possible by either accessing your display driver/framebuffer directly or you can have your customized paint engine.

        bq. To render outside of Qt's paint system, e.g., if you require native painting primitives, you need to reimplement QWidget::paintEngine().

        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