@SGaist Oh man exactly they forgot to include the
#include <QPointer>

Thnx for that help!