Class Ui::MainWindow has public pointers to all elements of Yours ui. Just look into ui_mainwindow.h.