FirstPage という名前のクラスがあり、メインウィンドウに FirstPage のオブジェクトがあります! 今、メインウィンドウの FirstPage の「Ui」にアクセスしたいのですが、できません!
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
private:
FirstPage* FrstPg;
};
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
FrstPg = new FirstPage (this);
connect (FrstPg->ui->pushButton,SIGNAL(clicked(),FrstPg,SLOT(show());//Error ERRor
}
私は何をすべきか ?!