Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Non capturable window using Qt

    General and Desktop
    2
    4
    893
    Loading More Posts
    • 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.
    • R
      rohit_vk last edited by

      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 Reply Quote 0
      • A
        Asperamanca last edited by

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

        1 Reply Last reply Reply Quote 0
        • R
          rohit_vk last edited by

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

          1 Reply Last reply Reply Quote 0
          • A
            Asperamanca last edited by

            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 Reply Quote 0
            • First post
              Last post