I have a class, and now I wish to add database connections to the constructor for that class.
I have code like
The problem is the "X" part. What do I write there? Should I declare a QList<QSqlDatabase> in the class or QList<QSqlDatabase*> ?Qt Code:
for (int i=0;i<nr_of_connects;i++) { X.open(); }To copy to clipboard, switch view to plain text mode
I will not know how many database connections there will be at compile time :-(
Bookmarks