You're probably missing
Qt Code:
  1. #include "ui_mainwindow.h"
To copy to clipboard, switch view to plain text mode 
.