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. Displaying a QT Widget on / overlaying a 3rd Party Window (in Windows)
Forum Updated to NodeBB v4.3 + New Features

Displaying a QT Widget on / overlaying a 3rd Party Window (in Windows)

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 2.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.
  • O Offline
    O Offline
    oracle3001
    wrote on last edited by
    #1

    This is not something I have tried before and am a complete newbie to the likes of HWND, hooking etc.

    Basically, I would like to display / overlay a QT Widget on top of a window of a 3rd party application (which I have no control over, I only know very basic information like window title / caption and its class name) and I have absolutely no idea how one would go about this. I also want the QT Widget to remain in it relative location to the window of the 3rd party application even if that window is moved around the screen.

    1 Reply Last reply
    0
    • B Offline
      B Offline
      belab
      wrote on last edited by
      #2

      Here's something similar, but just a proof of concept:
      https://github.com/belab/WolfClick

      1 Reply Last reply
      0
      • O Offline
        O Offline
        oracle3001
        wrote on last edited by
        #3

        Could you explain exactly what your code is for? The description is "click bot", I'm not sure how that relates to my question. And also roughly how it works.

        1 Reply Last reply
        0
        • B Offline
          B Offline
          belab
          wrote on last edited by
          #4

          I does record mouse clicks on other windows and plays them back. That's what I used the hooks for. During playback there's a semi transparent custom widget which is placed as overlay at the recorded mouse positions. It's just a POC, but here's how it works:

          1. click record
          2. click on any position on your desktop (e.g. other windows )
          3. then click on stop and play - now you should how the clicks are replayed
            that's it
          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