Hi,
i have some clarification regarding Qt programming. In Qt most of the time we instantiate widget by allocating the memory dynamically.
is there any advantages of doing like this from Qt prospective? and what about de-allocation of memory for the widget?. do we need to manually call delete for the allocated memory or Qt handles?
Example
QListView *newlist = new QListView(); //This is good? if so why?
QListView newlist; // why not this?