I am using Qt Designer 4.8.4 and I include two files in the QMainWindow resource file: a .ico file and a .gif file. When loading from code using:
QPixmap p;
Because QPixmap Cant read .ico files simply, take a look at documentation QPixmap if you want to know more about formats supported