Do not include qt headers here. If you need a qt header, put it in the precompiled header file. However, you already have QMap, so in this file, just make sure to include "comments_api.h" instead of this and you'll get everything you need.