Hello, I'm trying to pass a Mat parameter from one window to another, being activated by the click of a button. The program normally compiles and executes, but when clicking the button that activates the event, the program of a chrash in the execution. Here is the code that calls the other window:
void MainWindow::on_commandLinkButton_clicked(){
Form *form = new Form();
form->setInput(this->ModFirstP);
form->execTransform();
form->setLabels();
form->show();
}
The problem parameter is the ModFirstP of type Mat, I want to set it in an attribute of the other window I am generating:
.H
void setInput(Mat&);
.cpp
void Form::setInput(Mat& in){
this->input = in;
}
Would anyone know how to pass parameters between Windows (Forms) in Qt? Or does Qt only accept QObject objects as parameters between windows? Thank you in advance.