Results 1 to 8 of 8

Thread: is there any api can send signal/message to other application

  1. #1
    Join Date
    Jul 2009
    Posts
    11
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default is there any api can send signal/message to other application

    is there a way to close other application through windows title like MFC in win32 platform.
    or other method, can qt do it? other question i want to know is can qt send a message/signal to other application.
    any help is appreciated.

  2. #2
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: is there any api can send signal/message to other application

    Try:
    Boost

  3. #3
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: is there any api can send signal/message to other application

    Quote Originally Posted by guchangyuan View Post
    other question i want to know is can qt send a message/signal to other application.
    if your both application are in Qt and you have the source code of both of the application then on Windows you can just send the SendMessage api... or for a platform independent way... google for QtSingleApplication to take some hint.

  4. The following user says thank you to nish for this useful post:

    guchangyuan (27th July 2009)

  5. #4
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Thanks
    116
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: is there any api can send signal/message to other application

    ther question i want to know is can qt send a message/signal to other application.
    QProcess will help u .. as a std Input u can send message to seperate application ... otherwise as a argument of the application u can send a message ..
    "Behind every great fortune lies a crime" - Balzac

  6. #5
    Join Date
    Jul 2009
    Posts
    11
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: is there any api can send signal/message to other application

    Quote Originally Posted by MrDeath View Post
    if your both application are in Qt and you have the source code of both of the application then on Windows you can just send the SendMessage api... or for a platform independent way... google for QtSingleApplication to take some hint.

    thank you for your answer, why i can't find the information about QtSingleApplication int qt assisatant, and i include it, compiler error information is : no this file.

  7. #6
    Join Date
    Jul 2009
    Posts
    11
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: is there any api can send signal/message to other application

    is qt call win32 api like mfc? direct call it? like HWND hwnd = FindWondw("", "");

  8. #7
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: is there any api can send signal/message to other application

    thank you for your answer, why i can't find the information about QtSingleApplication int qt assisatant, and i include it, compiler error information is : no this file.
    because it is not a part of qt api... you have to download it sperately from qtsotware.com solutions page

    is qt call win32 api like mfc? direct call it? like HWND hwnd = FindWondw("", "");
    yes you can call any win32api ... just include <windows.h> whereever you want to use it... but remember that your code will work only on windows then.

  9. The following user says thank you to nish for this useful post:

    guchangyuan (27th July 2009)

  10. #8
    Join Date
    Jul 2009
    Posts
    11
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: is there any api can send signal/message to other application

    Quote Originally Posted by MrDeath View Post
    because it is not a part of qt api... you have to download it sperately from qtsotware.com solutions page


    yes you can call any win32api ... just include <windows.h> whereever you want to use it... but remember that your code will work only on windows then.

    i got it. thank you very much.

Similar Threads

  1. QSkinWindows Classes
    By kernel_panic in forum Qt-based Software
    Replies: 45
    Last Post: 20th April 2010, 12:35
  2. Deploying Qt 4.5.1 Application on RHEL 5.. Pls Help
    By swamyonline in forum Installation and Deployment
    Replies: 0
    Last Post: 28th June 2009, 11:43
  3. send an email from my Qt application
    By omega36 in forum Qt Programming
    Replies: 14
    Last Post: 22nd December 2008, 17:06
  4. dll + application
    By fpujol in forum Qt Programming
    Replies: 11
    Last Post: 15th April 2007, 18:37
  5. Replies: 3
    Last Post: 6th February 2006, 17:41

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.