Qt Code:
  1. void VSDPM_CDT::DisplaySimWnd(int nModule)
  2. {
  3. emit moduleDatarcvd(nModule);
  4. }
To copy to clipboard, switch view to plain text mode 

Here i am emitting a signal i.e n module and at receiver side:
Qt Code:
  1. connect (this, SIGNAL(moduleDatarcvd(int)), this, SLOT(ShowModuleSimWnd(int)),Qt::BlockingQueuedConnection);
To copy to clipboard, switch view to plain text mode 

and my ShowmoduleSimWnd is a method which will be called when it is received a signal i.e

Qt Code:
  1. void VSDPM_CDT::ShowModuleSimWnd(int nModule)
  2. {
  3. if(nModule == 0)
  4. {
  5. OnClickCanSimulation();
  6. }
  7. else if(nModule == 1)
  8. {
  9. OnClickLinSimulation();
  10. }
  11. else if(nModule == 2)
  12. {
  13. OnClickADCSimulation();
  14. }
  15. else if(nModule == 3)
  16. {
  17. OnClickDIOSimulation();
  18. }
  19. else if(nModule == 4)
  20. {
  21. OnClickPWMSimulation();
  22. }
  23. else if(nModule == 5)
  24. {
  25. ShowLogMessage("test","Inside module");
  26. OnClickTCPIPSimulation();
  27. }
  28. else if(nModule == 6)
  29. {
  30. OnClickBTSimulation();
  31. }
  32. }
To copy to clipboard, switch view to plain text mode 

in lin if(nModule == 5) i am getting a problem. Actually i am blocking the queue here to wait for a signal to come. please help me in this scenario