PDA

View Full Version : Function return



waynew
11th November 2009, 23:59
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?

wysota
12th November 2009, 00:52
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.