@SneakyPeterson: The QVector object is allocated on the stack and it has some pointers to typename T, witch (the pointer itself) it's also on stack, but it is used to allocate memory on the heap.

If the vector itself will be on the heap, how it will be auto-deleted? It can't, it doesn't have the "parenting thing" (only the GUI parts on Qt have that).