it looks like you declared
void closeEvent(QCloseEvent *event); in header

and did not implement it in.cpp