Hi, I have a QWizard with a few pages and i need to access QTableWidget from another page. The reason I want to do it is that i want to load data from table while initalizing another page.

Here's my page code:
Qt Code:
  1. class SelectionPage : public QWizardPage
  2. {
  3. Q_OBJECT
  4.  
  5. public:
  6. SelectionPage(QWidget *parent = 0);
  7. int nextId() const;
  8. void initializePage();
  9. void drawtable();
  10.  
  11. private:
  12. QLabel *topLabel,*middleLabel;
  13. QLineEdit *fileLineEdit;
  14. QPushButton *browsePushButton;
  15. QTableWidget *cgTableWidget;
  16.  
  17. private slots:
  18. void on_browsePushButton_clicked();
  19. };
To copy to clipboard, switch view to plain text mode 

I suppose i should make QTableWidget public, but even if i do it, i get this error message:
error: object missing in reference to ‘SelectionPage::cgTableWidget’
Any help would be appreciated