1) cleaned the program
2) Rebuild it
3) than ran it
This is the destructor :
MainWindow::~MainWindow()
{
delete ui;
db.close();
qDebug() << "from destructor1";
// delete model1;
// delete model2;
// qDebug() << "from destructor2";
// qDebug() << ui->textBrowser_MySQL_log->toPlainText();
}
MainWindow::~MainWindow()
{
delete ui;
db.close();
qDebug() << "from destructor1";
// delete model1;
// delete model2;
// qDebug() << "from destructor2";
// qDebug() << ui->textBrowser_MySQL_log->toPlainText();
}
To copy to clipboard, switch view to plain text mode
this is the output:
from destructor1
from destructor2
from destructor1
from destructor2
To copy to clipboard, switch view to plain text mode
Bookmarks