two errors here:
i) you can not copy QObjects (or subclasses like QWidgets), thus you can not put them in containers by value; you can use QList<SomeClass*>, though.
ii) NULL is a pointer, whereas your vector wants an object, which is why you'd get an error even if QLabel was copyable
HTH
Bookmarks