Just a guess.
a) #include <QIcon>
#include <QIcon>
b) Copy icon file to "debug" build folder.
c) setWindowIcon(QIcon("icon.png"));
setWindowIcon(QIcon("icon.png"));
It did work for me.