Hello, if i have created with QT Designer a class called ui_class.h with the main window layout and at the and i have declared this namespace:
Qt Code:
  1. namespace Ui {
  2. class MainWindowClass: public Ui_MainWindowClass {};
  3. }
To copy to clipboard, switch view to plain text mode 

then i've made class.h in this way
Qt Code:
  1. #include <QtGui/QWidget>
  2. #include "modify.h"
  3. class class : public QMainWindow
  4. {
  5. Q_OBJECT
  6.  
  7. public:
  8. class();
  9. ~class();
  10. private:
  11. Ui::MainWindowClass ui;
  12. Modify *modify;
  13. };
To copy to clipboard, switch view to plain text mode 

and the class.cpp
Qt Code:
  1. #include <QtGui>
  2. #include "class.h"
  3.  
  4.  
  5. class::class()
  6. {
  7. ui.setupUi(this);
  8. modify = new Modify(this);
  9.  
  10. }
  11.  
  12. server::~server(){}
To copy to clipboard, switch view to plain text mode 

how is the constructor in modify.h? cos i want to pass at the modify.h a pointer at the "MainWindowClass ui" to have access at all the widget that i have in ui_class.h.
Is it possibile?