We will now go ahead and create a new entity called Characters to be added to entities.pri. Since this entity will be a subclass of a QAbstractListModel, we can use one of Qt Creator's file templates to create it. We will open entities.pri and use Qt Creator's New File or Project... menu. In the template selector, we will choose the Qt Item Model template under the Qt submenu. We'll want to define the following options in the wizard, ensuring that QAbstractListModel is selected as the base class:
Then, in the Project Management step, choose entities.pri as the project to be added to.
The newly created header ...