Cloud Stack Ninja

My goal is to take information about drink bottles in line edit providing the user with categories about the bottle to fill out, such as material, capacity and cost.

I have "steel, 550mL and $5.50" showing in a display box using:

ui->itemBox->setText(ui->materialEdit->text() + " Cost:" + ui->costEdit->text());

I have a class for 'bottles' I will be making multiple objects with provided the information from the user. So I'm trying to find a way to pass this user provided information to either store as a variable and then (or directly) pass to the bottles constructor to make a new instance of class bottles.



Read more here: https://stackoverflow.com/questions/64398719/taking-input-from-lineedit-and-assigning-to-a-variable

Content Attribution

This content was originally published by Jackll at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: