@bdandans said in Trouble implementing back end functionality to UI:
Doesn't that set it to whatever's in the box at the time, which is nothing initially?
Yes, what else should it set? Just do it when it is needed (for example when the user clicks Next button).
How do I make that assignment once the user has finished filling the form?
Connect a slot to the Next button and do it there.
From your first post:
QObject::connect(nextButton, SIGNAL(clicked(bool)),
nameInput, SLOT(nameInput = nameLineEdit));
QObject::connect(nextButton, SIGNAL(clicked(bool)),
heightInput, SLOT(heightInput = heightBox));
QObject::connect(nextButton, SIGNAL(clicked(bool)),
widthInput, SLOT(widthInput = widthBox));
this is invalid code. Please read http://doc.qt.io/qt-5.9/signalsandslots.html
It should look like this:
QObject::connect(nextButton, SIGNAL(clicked(bool)),
this, SLOT(nextClicked()));
void MainWindow::nextClicked()
{
// Read here the values
}