thanks
By the way, is there a quick method to find out which object you can allocate on the heap (ie via "new") without deleting, and which should be delete-d afterwards?
For instance, it is clear that the QString should be allocated on the stack, because it does not have as parameters a pointer to the parent. So, can all objects of all classes who have constructors that take as parameter a pointer to the parent be allocated on the heap (without the need to use delete afterwards)?