Hi,

it is not ok to return a QVariantList variable from a function right?

e.g.,

Qt Code:
  1. QVariantList app::f()
  2. {
  3. QVariantList obj;
  4. return obj;
  5. }
To copy to clipboard, switch view to plain text mode 
because obj will go out of scope when f exits?? (ps.I understand this maybe common to all data types, just checking).