Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to send keystrokes to Non-Qt applications



  • I would like to send key strokes to applications running in my operating system. Using windows API, I can easily do that by calling the function keybd_event. Is there any equivalent in the Qt framework.

    Thanks,



  • Nope. This falls outside the scope of Qt.



  • Out of Qt's scope? ;-)
    @
    External (real?) world
    {
    Qt
    }
    @

    Joke apart: By searching the web for a way to send keystrokes outside a Qt application in a cross-platform manner, it seems that's a really needed thing. That would be really helpful if Qt provides it.


Log in to reply