Hello all !

I have some new questions but I'll begin with a "simple" one.

ui_muref.h (automatically generated from the .ui file itself from QtDesigner)
Qt Code:
  1. #ifndef UI_MUREF_H
  2. #define UI_MUREF_H
  3.  
  4. #include <QtCore/QVariant>
  5. ...// (other default includes...)
  6.  
  7. class Ui_MainWindow
  8. {
  9. public:
  10. ...
  11. QTreeView *treeView;
  12. ...
To copy to clipboard, switch view to plain text mode 

ui_murefimpl.h
Qt Code:
  1. #ifndef UI_MUREFIMPL_H
  2. #define UI_MUREFIMPL_H
  3.  
  4. #include "ui_muref.h"
  5. #include <qmainwindow.h>
  6. #include <qwidget.h>
  7. #include <qtreeview.h>
  8.  
  9. class ui_murefImpl : public QMainWindow
  10. {
  11. Q_OBJECT
  12. public:
  13. ui_murefImpl(QWidget *parent = 0);
  14. QTreeView *qTree;
  15. void buildQTree();
  16. private:
  17. Ui::MainWindow ui;
  18. private slots:
  19. void slotQuit();
  20.  
  21. // test slots
  22. void slotTest();
  23. };
  24. #endif
To copy to clipboard, switch view to plain text mode 

ui_murefimpl.cpp
Qt Code:
  1. #include "ui_murefimpl.h"
  2. #include <qwidget.h>
  3. #include <qtreeview.h>
  4. #include "ui_muref.h"
  5.  
  6. ui_murefImpl::ui_murefImpl(QWidget *parent) : QMainWindow(parent)
  7. {
  8. ui.setupUi(this);
  9. // do connections
  10. connect(ui.actionQuit, SIGNAL(activated()), this, SLOT(slotQuit()));
  11.  
  12. // test slots
  13. connect(ui.actionTest, SIGNAL(activated()), this, SLOT(slotTest()));
  14. // end
  15. }
  16.  
  17. void ui_murefImpl::slotTest()
  18. {
  19. ui_murefImpl::buildQTree();
  20. }
  21.  
  22. void ui_murefImpl::buildQTree()
  23. {
  24. // what to put here ?
  25. }
To copy to clipboard, switch view to plain text mode 

The question is : "how to access to the treeView which is in the ui_muref.h" ??
My goal is to "configure" it by default with the function "buildQTree()" !

Thanks a lot for the first who solve this (noob) problem !