There is no reason to inherit QStack from QList, because it would waste resources (QList has some extra space ready for incoming data at the beginning of its data structure).