Results 1 to 2 of 2

Thread: Sending a shortcut to an exec managed by QProcess ?

  1. #1
    Join Date
    Oct 2006
    Posts
    6
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Sending a shortcut to an exec managed by QProcess ?

    Hello,
    I would like to send some shortcuts (ex: CTRL+C) to a console application managed by QProcess.
    Does anyone have an idea ?

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Sending a shortcut to an exec managed by QProcess ?

    Using QProcess? No, I doubt this is doable.
    You'll have to obtain somehow a pointer to the QApplication instance( of the console app ), and post a key event to it's event queue.

    Regards

Similar Threads

  1. Replies: 8
    Last Post: 28th January 2015, 09:45
  2. qt network performance
    By criss in forum Qt Programming
    Replies: 16
    Last Post: 24th July 2006, 09:23

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.