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. Trigger widget signals from external program
Forum Updated to NodeBB v4.3 + New Features

Trigger widget signals from external program

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

    I am working with a closed-source program using Qt. Due to the nature of this program, I would like to be able to some add functionality to allow me to map keys on my keyboard to trigger the clicked() signal on buttons in the program.

    What would be the best way to go about this?

    I was thinking about possibly modifying the source code for the Qt dll responsible for triggering these signals and adding the functionality for them to take input from an outside source, possibly a window message. With this method, however, I would first need to identify which buttons are which and figure out how to store that data for use by the modified code, which seems like it would be overly difficult. If this is the most efficient method, what would be the best way to approach implementing it?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Santosh Reddy
      wrote on last edited by
      #2

      bq. I am working with a closed-source program using Qt. Due to the nature of this program, I would like to be able to some add functionality to allow me to map keys on my keyboard to trigger the clicked() signal on buttons in the program.

      Does this mean you want to send some inputs (like mouse click, key press events) to a program which you don't know was written to accept such inputs.

      bq. What would be the best way to go about this?

      Best way is to get the source code and add hooks to accept such external inputs.

      bq. I was thinking about possibly modifying the source code for the Qt dll responsible ....

      Modifying (replacing) Qt dlls will give you a way to hack into the pushbutton signals, and this will be the next alternate as program source is not available to be modified. When modifiing the push button source you should add some mechanism to store a map of all the push buttons created by the application and then add a way to take external inputs (like native events, or messages) and relay them to the targeted push button, or just emit it's signal. It is definitely not simple but is possbile.

      SS

      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