Results 1 to 4 of 4

Thread: Can I send a message/command from a Qt application to an another like in MFC?

  1. #1
    Join Date
    Jan 2006
    Posts
    29
    Qt products
    Qt4
    Platforms
    Windows

    Default Can I send a message/command from a Qt application to an another like in MFC?

    In MFC, I use ::FindWindow() and ::SendMessage() to send a message/command from a application to an another. But I don't know how to do that in Qt. I read about QProcess but I didn't find out any similar solution.
    Can someone help me solve this problem?
    Thanks for reading!

  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: Can I send a message/command from a Qt application to an another like in MFC?

    Use regular WinAPI calls for that (Find Window and SendMessage/PostMessage). And yes, these are not MFC calls, but WinAPI ones.

  3. #3
    Join Date
    Jan 2006
    Posts
    29
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Can I send a message/command from a Qt application to an another like in MFC?

    Thanks wysota, you're right but I have to develop an application on both Windows and Mac OS X and I don't know about Mac as well as Carbon environment very much.

  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: Can I send a message/command from a Qt application to an another like in MFC?

    Posting messages to other windows is platform dependent. Use some independent mechanism instead (like sockets).

Similar Threads

  1. QSkinWindows Classes
    By kernel_panic in forum Qt-based Software
    Replies: 45
    Last Post: 20th April 2010, 12:35
  2. Qt Application + Web Integration -- Help needed
    By swamyonline in forum Qt Programming
    Replies: 0
    Last Post: 17th February 2009, 11:59
  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

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.