Hey,

I want to send my TableView QstandardItemModel from my DialogWindow to my Main Window.
My problem is that the Table View in the mainWindow show me an empty table. I probally do something wrong with the pointers, but I am not sure.
Need Help to send the model or maybe there is another method to send the content of the Dialog Table?
Here is my Code:

Signal - Slot connection in the main window:
Qt Code:
  1. Pattern_creator pattern_creator(colorNames);
  2. QObject::connect(&pattern_creator, SIGNAL(valueChanged(int,int,QStandardItemModel*)), this, SLOT(PatternCreator(int,int,QStandardItemModel*)));
To copy to clipboard, switch view to plain text mode 


The function in the main window:

Qt Code:
  1. void Pattern::PatternCreator(int row, int column, QStandardItemModel *model_test)
  2. {
  3. ui->tableView_test->setModel(model_test);
  4. .
  5. .
  6. .
  7. }
To copy to clipboard, switch view to plain text mode 

The call from the Dialog Window:
Qt Code:
  1. emit valueChanged(row_pattern, column_pattern, model_pattern_creator);
To copy to clipboard, switch view to plain text mode 

The Dialog Header :
Qt Code:
  1. public:
  2. QStandardItemModel *model_pattern_creator;
  3. signals:
  4. void valueChanged(int row_pattern,int column_pattern, QStandardItemModel *model_pattern_creator );
To copy to clipboard, switch view to plain text mode 

Thanks for help!