You can subclass directly from the QAbstractView or overwrite that function