I have no idea why signal slot don't work.There is no error at all:
customers.h
signals:
void setFlagUp();
signals:
void setFlagUp();
To copy to clipboard, switch view to plain text mode
customers.cpp
void Customers::on_pushButtonCustomersDialogAdd_clicked()
{
emit setFlagUp();
this->close();
}
void Customers::on_pushButtonCustomersDialogAdd_clicked()
{
emit setFlagUp();
this->close();
}
To copy to clipboard, switch view to plain text mode
mainwindow.h
private slots:
void setIsRecordSet();
private slots:
void setIsRecordSet();
To copy to clipboard, switch view to plain text mode
mainwindow.cpp
Customers *cu = new Customers(this);
connect(cu, SIGNAL(setFlagUp()),this, SLOT(setIsRecordSet()));
void MainWindow::setIsRecordSet(){
qDebug() << "WORKS";
}
Customers *cu = new Customers(this);
connect(cu, SIGNAL(setFlagUp()),this, SLOT(setIsRecordSet()));
void MainWindow::setIsRecordSet(){
qDebug() << "WORKS";
}
To copy to clipboard, switch view to plain text mode
Bookmarks