I have a similar problem but exactly opposite -
I too have a 'server' and a 'client' and I need to bring the client into the 'server's QWidget.

my code is:
Qt Code:
  1. winHandle = ::FindWindowA(NULL, "My Client");
  2. if(winHandle != NULL)
  3. {
  4. ::ShowWindow(winHandle, SW_HIDE);
  5.  
  6.  
  7. // Remove the window border
  8. LONG lStyle = GetWindowLong(winHandle, GWL_STYLE);
  9. lStyle &= ~(WS_CAPTION | WS_THICKFRAME | WS_MINIMIZE | WS_MAXIMIZE | WS_SYSMENU);
  10. ::SetWindowLong(winHandle, GWL_STYLE, lStyle);
  11.  
  12. ::SetParent(winHandle, (HWND)(ui->widget->effectiveWinId()));
  13. ::SetWindowPos(winHandle, HWND_TOP, ui->widget->pos().x(), ui->widget->pos().y(), 0, 0 , SWP_NOACTIVATE | SWP_FRAMECHANGED | SWP_NOSIZE | SWP_ASYNCWINDOWPOS);
  14. ::UpdateWindow(winHandle);
  15. ::ShowWindow(winHandle, SW_SHOW);
  16. }
To copy to clipboard, switch view to plain text mode 
the problem I'm facing is that sometimes (not always!) the servers' buttons become not responding.
I noticed that when such a case happens, the buttons don't respond as long as they are located in the middle of the screen. but, the weirdest thing is that if i move the whole window so the buttons are located close to the edge of the screen - they work! if i move it back to the center - they stop working again.
any idea?? someone?