Results 1 to 4 of 4

Thread: send OS signals to apps on all platforms

  1. #1
    Join Date
    Feb 2006
    Posts
    209
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default send OS signals to apps on all platforms

    Hello.
    In unix I can do kill <signal> <process> to send a specific signal to an application, is there any Qt tools for doing this on both *nix/windows/mac?

    Or, is there a way to do this in unix only? I find a lot of un-related stuff when googling on "signal" in combination with Qt

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: send OS signals to apps on all platforms

    On Unix use kill(). What more would you want?

  3. #3
    Join Date
    Feb 2006
    Posts
    209
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: send OS signals to apps on all platforms

    Well, if I'd do kill -USR1 <processid> (i think it was called USR1) and I want my program to do something special, like maximizing the window, or something else except killing the program?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: send OS signals to apps on all platforms

    Type in "man 2 kill".

Similar Threads

  1. signals and slots between 2 Apps?
    By nupul in forum Qt Programming
    Replies: 9
    Last Post: 12th April 2006, 11:38

Tags for this Thread

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.