Updated variable collection to support both Qt and STL vectors simultaneously