oh erh, I didn't know I was supposed to access them like that

Qt Code:
  1. #ifndef PRACTICE_H
  2. #define PRACTICE_H
  3.  
  4. #include <QtGui/QMainWindow>
  5. #include "ui_practice.h"
  6.  
  7. class practice : public QMainWindow, private Ui::practiceClass
  8. {
  9. Q_OBJECT
  10.  
  11. public:
  12. practice(QWidget *parent = 0, Qt::WFlags flags = 0);
  13.  
  14. public slots:
  15. void addItem();
  16. void removeItem();
  17.  
  18. private:
  19. Ui::practiceClass ui;
  20.  
  21. private slots:
  22.  
  23. void init();
  24. };
  25.  
  26. #endif // PRACTICE_H
To copy to clipboard, switch view to plain text mode 

there is my header file.