Hello, I have some problem - I cannot use a variable from other class.
For example I have in class Setts QSpinBox SB1 and int i. I would like to check value of 'i' and set value of SB1 in method in class Pac.
I tried Setts::set_ui->SB1->setValue(1); but I got error: object missing in reference to 'Setts::set_ui'

setts.h
Qt Code:
  1. #include <QSpinBox>
  2. #include "ui_setts.h>
  3.  
  4. namespace Ui {
  5. class Setts;
  6. }
  7.  
  8. class Setts : public QDialog {
  9. Q_OBJECT
  10. public:
  11. Setts(QWidget *parent = 0);
  12. ~Setts();
  13. Ui::Setts *set_ui;
  14.  
  15. protected:
  16. void changeEvent(QEvent *e);
  17.  
  18. private:
  19. QSpinBox *SB1;
  20. int i;
  21. }
To copy to clipboard, switch view to plain text mode 

setts.cpp
Qt Code:
  1. #include "setts.h"
  2. #include "ui_setts.h"
  3.  
  4. Setts::Setts(QWidget *parent) :
  5. QDialog(parent),
  6. set_ui(new Ui::Setts)
  7.  
  8. {
  9. set_ui->setupUi(this);
  10. this->showFullScreen();
  11. }
To copy to clipboard, switch view to plain text mode 
Thanks in advanced
Przemek