Sure, the following is the code and what I want to do is to access the "Form" using "pushButton":
tabWidget
->setGeometry
(QRect(20,
20,
421,
291));
pushButton
->setGeometry
(QRect(30,
40,
171,
71));
QWidget* Form;
QTabWidget *tabWidget;
QWidget *tab;
QPushButton *pushButton;
Form = new QWidget();
tabWidget = new QTabWidget(Form);
tabWidget->setGeometry(QRect(20, 20, 421, 291));
tab = new QWidget();
pushButton = new QPushButton(tab);
pushButton->setGeometry(QRect(30, 40, 171, 71));
tabWidget->addTab(tab, QString());
To copy to clipboard, switch view to plain text mode
Bookmarks