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

6th February 2006, 10:50
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!

6th February 2006, 10:52
Use regular WinAPI calls for that (Find Window and SendMessage/PostMessage). And yes, these are not MFC calls, but WinAPI ones.

6th February 2006, 12:03
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.

6th February 2006, 18:41
Posting messages to other windows is platform dependent. Use some independent mechanism instead (like sockets).