You opened the database in main. The function you called is so small it most likely was placed in-line by the compiler. This would be especially true if you did nothing with dbOpen. You have no reason to open it there. Again, read the fine manual. http://doc.qt.io/qt-5/qsqldatabase.html#database Every time you call QSqlDatabase::database( "someConnectionName")
it will open the database if it is not currently open. You should
never open the database in main. Just set up all of the values for
it. On 08/21/2018 03:54 PM, Israel Brewster
wrote:
-- Roland Hughes, President Logikal Solutions (630) 205-1593 http://www.theminimumyouneedtoknow.com http://www.infiniteexposure.net http://www.johnsmith-book.com http://www.logikalblog.com http://www.interestingauthors.com/blog http://lesedi.us |
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest