The Assistant said:
"QSqlDatabase is a value class. Changes made to a database connection via one instance of QSqlDatabase will affect other instances of QSqlDatabase that represent the same connection."
What does it mean by "value class"?
I only have one database connection in my application. Should I use a pointer to it everywhere in the program? Or shouldn't I?
Which is better? MyApp1 or MyApp2 ?Qt Code:
public: return db; } private: QSqlDatabase db; } public: return &db; } private: QSqlDatabase db; }To copy to clipboard, switch view to plain text mode
Thanks !
Bookmarks