This had been bugging me for a while. Seems all I had to do was give the correct case header file in mainwindow.ui