conn1 is the name of db connection not C++ variable. Variable name is m_insertDataBase - C++ ABC.
And line 4
m_insertDataBase = QSqlDatabase::database("conn1");is unnecessary.
And why did you think it was important to bring a nearly 7 year old post back from the dead to report this? At this point, who cares?d_stranz Today, 05:55
Qt Centre is a community site devoted to programming in C++ using the Qt framework developed at Digia.
If you have any problems with Qt or its usage, you can get help from the members of Qt community on our forum.
Don't forget to check out our links section for more Qt resources.
Qt is a cross-platform application and UI framework. Using Qt, you can write web-enabled applications once and deploy them across desktop, mobile and embedded operating systems without rewriting the source code.