We can create QAbstractItemModel derived class to customize the model behavior.