I'm learning both c++ and QT ...

Qt Code:
  1. Myclase::Myclase(QWidget *parent) :
  2. QMainWindow(parent),
  3. ui(new Ui::Myclase)
  4. {
  5. ui->setupUi(this);
  6. BuildTable();
  7. }
  8.  
  9. Myclase::~Myclase()
  10. {
  11. delete ui;
  12. }
  13.  
  14. void Myclase::BuildTable () {
  15. QStandardItemModel model(4, 2);
  16. ui->tableView.setModel(&model);
  17. }
To copy to clipboard, switch view to plain text mode 

and I get the next error :

error: request for member 'setModel' in '((Myclase*)this)->Myclase::ui->Ui::Myclase::<anonymous>.Ui_Myclase::tableView' , which is of non-class type 'QTableView*'

Of course I have a tableView in my ui.
Please help me ...