Hi guys,
i don't know what i missed, but can anyone explain me why all members of a QT class should be allocated on heap: i.e. QLabel *x = new QLabel
Why not on the stack? I know that everything you allocate on the heap, doesn't get destroyed until you call explicit the delete command...
Second, I know Qt deletes all child objects of a class, so i don't have to define the destructor, right?
Thanks![]()
Bookmarks