I have a function that queries a database and needs to return the results - 14 fields from a table.
The question is, what is the best method to use in returning the data?
A structure? and if so, what does the return type on the function look like?
I have a function that queries a database and needs to return the results - 14 fields from a table.
The question is, what is the best method to use in returning the data?
A structure? and if so, what does the return type on the function look like?
The fastest way would be to return QVariantList or QVariantMap. Of course then you have to convert the data to proper types in the calling code.
waynew (12th November 2009)
Bookmarks