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. General and Desktop
  4. Non capturable window using Qt
Qt 6.12 LTS is out! See what's new in the release blog

Non capturable window using Qt

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.4k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hi guys, I am new to Qt. I have a library(Windows platform) that captures the desktop screen. I want a window which does not get captured by my screen capture library. I've tried using LAYERED_WINDOW approach in Windows but it works under restrictive conditions only.

    So is there any property to be set on Qt window or any api to do so, plz mention here.

    Any new ideas/suggestions are welcome.

    Thank you.

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

      Hard to make sensible suggestions without knowing which capture library you are talking about, and how it works.

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        We use our own library. We use BitBlt to capture desktop window. Anything else you'd like to know?

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

          In that case, you have no chance to capture anything but what you see on the desktop window, AFAIK. The information on partially obscured windows simply isn't there by the time you capture.

          Your best bet is to hide the window, run the event loop, then capture, then re-show it. It will flicker, but it should work.

          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