ggdev001
25th February 2013, 08:32
Hi,
it is not ok to return a QVariantList variable from a function right?
e.g.,
QVariantList app::f()
{
QVariantList obj;
return obj;
}
because obj will go out of scope when f exits?? (ps.I understand this maybe common to all data types, just checking).
it is not ok to return a QVariantList variable from a function right?
e.g.,
QVariantList app::f()
{
QVariantList obj;
return obj;
}
because obj will go out of scope when f exits?? (ps.I understand this maybe common to all data types, just checking).