A pushbutton, pbSave, in the StnInfoDialog form needs to call the slot insertInfo in the stninfodialog.cpp passing the value of the form field 'call'
Here is the code:

Qt Code:
  1. #include "stninfodialog.h"
  2. #include "ui_stninfodialog.h"
  3. #include "makestndb.h"
  4. #include "insertstninfo.h"
  5. #include <QDebug>
  6.  
  7. StnInfoDialog::StnInfoDialog(QWidget *parent) :
  8. QDialog(parent),
  9. m_ui(new Ui::StnInfoDialog)
  10. {
  11. m_ui->setupUi(this);
  12.  
  13. connect(m_ui->pbSave, SIGNAL(clicked(bool)),
  14. this, SLOT(insertInfo(m_ui->call->text())));
  15. }
  16. }
  17.  
  18. void StnInfoDialog::insertInfo(QString mycall)
  19. {
  20. InsertStnInfo insert;
  21. insert.insertStnInfo(mycall);
  22. }
To copy to clipboard, switch view to plain text mode 

Problem is, the slot never gets called when pbSave is clicked.
Can someone please show me what I am doing wrong?