The tablemodel example is part of other examples using common files. You should check the parent directory for file connection.h or checkout the whole qtbase project. Also learn how Qt projects are organized.