Anothere (complete!) noob here...I'm not really getting this.

Qt Code:
  1. ...
  2. qDebug() << "Opening window...";
  3. DodajanjeRacuna x;
  4.  
  5. if (x.exec() == QDialog::Accepted ) {
  6. qDebug() << "You pressed OK!";
  7. }
  8. ...
To copy to clipboard, switch view to plain text mode 

The dialog opens and works OK. When I press "OK", I get "you pressed OK") but there is no such thing as x.getValues() available
Am I missing something in my dialog? I have few text inputs and that's it... there re the constructor and destructor:

Qt Code:
  1. #include "dodajanjeracuna.h"
  2. #include "ui_dodajanjeracuna.h"
  3. #include <QtDebug>
  4.  
  5.  
  6. DodajanjeRacuna::DodajanjeRacuna(QWidget *parent) :
  7. QDialog(parent),
  8. m_ui(new Ui::DodajanjeRacuna)
  9. {
  10. m_ui->setupUi(this);
  11. this->Rolete(); // fill dropdowns
  12. }
  13.  
  14. DodajanjeRacuna::~DodajanjeRacuna()
  15. {
  16.  
  17. delete m_ui;
  18. }
To copy to clipboard, switch view to plain text mode 

Could I use *parent from constructor to pass data to opener; would that be the right way?