Answer the question
In order to leave comments, you need to log in
How to work correctly with form elements from another form in qt?
Hello! I'm trying to learn how to work with multiple forms in Qt.
There are two forms. Now in MainWindow I do this:
checkFileForm *fileF = new checkFileForm;
fileF->show();
public:
QPushButton *button;
checkFileForm::checkFileForm(QWidget *parent) :
QWidget(parent),
ui(new Ui::checkFileForm)
{
ui->setupUi(this);
button = ui->pushButton;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question