You can getObjectInstances(&name, 0) QList and in the code that wants to use a QVector cast it back but that will be less efficient.  I would change it throughout though (or add a new function) because having inconsistent function return types is pretty bad style IMO (other opinions welcome though).