Hi,
don't use QSqlDatabase as a private member, that could cause problems on quiting the application. Better use every time you need a database object the static method QSqlDatabase::database(). Use the optional parameter to identify which database connection you like.
Bookmarks