hello community

the main program QMainWindow of the Qt application i am dealing with is using the GUI created by Qt designer: all the installed widgets (buttons etc.) are operating correctly. so far so good.

From Qt main windows a menu bar QMenuBar is then istantiated, then the a Qmenu and the related Qaction, (uartTestsPanelAction) which gets 'connected' to the system by the following code
Qt Code:
  1. connect(uartTestsPanelAction, SIGNAL(triggered()),this,SLOT(uartTestsShowDialog()));
To copy to clipboard, switch view to plain text mode 
On click of "Uart tests" menu entry, the uartTestsShowDialog() pops up and run. Unfortunately, no action is performed, even if the buttons in the dialog box are pushed ....

Some sample code below
Qt Code:
  1. <foo.cpp>
  2.  
  3. foo::foo(QWidget *parent, Qt::WFlags flags) : QMainWindow (parent, flags)
  4. {
  5. // UI open
  6. ui.setupUi(this);
  7.  
  8. m_uartTests = new uartTests_ui();
  9.  
  10. menuBar = new QMenuBar;
  11.  
  12. debugMenu = new QMenu;
  13.  
  14. debugMenu->setTitle("&Debug");
  15.  
  16. menuBar->addMenu(debugMenu);
  17.  
  18. uartTestsPanelAction = new QAction ("&Uart Tests",this);
  19. debugMenu->addAction(uartTestsPanelAction);
  20.  
  21. setMenuBar(menuBar);
  22.  
  23. connect(uartTestsPanelAction,SIGNAL(triggered()),this,SLOT(uartTestsShowDialog()));
  24.  
  25. //my button by GUI
  26. connect(ui.pushButtonFunTests,SIGNAL(clicked()),this,SLOT (FunTestsShowDialog()));
  27.  
  28.  
  29. m_uartTests->initialize(this);
  30.  
  31. }
  32.  
  33.  
  34.  
  35. void foo::uartTestsShowDialog()
  36. {
  37. m_uartTests->show();
  38. }
To copy to clipboard, switch view to plain text mode 
now aforementioned the dialog
Qt Code:
  1. <uartTests_ui.cpp>
  2.  
  3. uartTests_ui::uartTests_ui(QWidget *parent, Qt::WFlags flags) : QDialog(parent, flags)
  4. {
  5.  
  6. // UI open
  7. ui.setupUi(this);
  8.  
  9. // the following is NOT executed, even if the connected buttons are pushed ;(
  10. connect(ui.pushButtonSendUart,SIGNAL(clicked()),this,SLOT (doSendUart()));
  11. connect(ui.pushButtonCleanRx,SIGNAL(clicked()),this,SLOT(clearRxUart()));
  12.  
  13. }
  14.  
  15. uartTests_ui::~uartTests_ui()
  16. {
  17. }
  18.  
  19. void uartTests_ui::initialize(ecmqMfgClient* client, QString comUsed)
  20. {
  21. m_client = client;
  22.  
  23. QString msg="COM USED: ";
  24. msg.append(comUsed);
  25. ui.labelComUsed->setText(msg);
  26.  
  27. }
  28.  
  29. void uartTests_ui::doSendUart()
  30. {
  31. m_client->doSendUart();
  32. }
  33.  
  34. QString uartTests_ui::getTxEdit()
  35. {
  36. return ui.lineEditTxUart->text();
  37. }
  38.  
  39. void uartTests_ui::
  40. clearRxUart()
  41. {
  42. QString msg="RX: ";
  43. ui.labelRx->setText(msg);
  44. }
  45.  
  46. void
  47. uartTests_ui::setRxLabel(QString msg)
  48. {
  49. ui.labelRx->setText(msg);
  50. }
To copy to clipboard, switch view to plain text mode 

thanks to anybody who'll help
the bottom line: why the widgets in a dialog box generated by the main windows are not active