Closed mantielero closed 3 years ago
Sadly they're needed in order to make inheritance work.
The setup
is the corrisponding class constructor.
When creating your own subclass simply call it in your constructor method.
Delete is the same. It should be called during destruction. In nim a simply attach a custom deleter when invoking new
I am trying to understand the abstractitemmodel example.
I don't get these few lines. When I look at the QAbstractListModel subclassing documentation I am not managing to see where those
delete
andsetup
are explained.Any help is welcomed. Regards.