your destructor is called automatically when your mainwindow object is destroyed. How and where do you create your mainwindow object and how does your destructor looks like? Please paste your code, so we can help you.
your destructor is called automatically when your mainwindow object is destroyed. How and where do you create your mainwindow object and how does your destructor looks like? Please paste your code, so we can help you.
Hi,
Thankyou for your help.
I solve the problum by setting this attribute on the constructor of main window.
setAttribute(Qt::WA_DeleteOnClose);
After setting this, the destructor is working when I close the main window.
and your problem is fixed?
This is described in the documentation:
http://doc.trolltech.com/4.3/qsqldat...removeDatabase
yeah, but that's not needed in that case. The call of the database close function will do it.
Bookmarks