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:
class SelectionPage : public QWizardPage
{
Q_OBJECT
public:
SelectionPage
(QWidget *parent
= 0);
int nextId() const;
void initializePage();
void drawtable();
private:
QLabel *topLabel,
*middleLabel;
private slots:
void on_browsePushButton_clicked();
};
class SelectionPage : public QWizardPage
{
Q_OBJECT
public:
SelectionPage(QWidget *parent = 0);
int nextId() const;
void initializePage();
void drawtable();
private:
QLabel *topLabel,*middleLabel;
QLineEdit *fileLineEdit;
QPushButton *browsePushButton;
QTableWidget *cgTableWidget;
private slots:
void on_browsePushButton_clicked();
};
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
Bookmarks