Hello i have button(not enable) and lineEdit in stackedWidget page.After work stackedwidget page(button is enable now) , How can i clear lineEdit and button is not enable.I mean how can i reinstall page initial setting.
Hello i have button(not enable) and lineEdit in stackedWidget page.After work stackedwidget page(button is enable now) , How can i clear lineEdit and button is not enable.I mean how can i reinstall page initial setting.
Execute:
Or did I miss the point of your question altogether?Qt Code:
ui->lineEdit->clear(); ui->pushButton->setEnabled(false);To copy to clipboard, switch view to plain text mode
This is a way for One lineEdit and button. But if have 3 lineEdits , 2 button and 3 comboBox(set initial index) , any easy way?
You are looking for an easier way than 8 straightforward function calls?
Im looking some widgets return initial setting runtime
You can of course save all properties of all widgets at start time and then apply them again for reset.
Probably below 100 lines of code.
Explicitly setting the target state as suggested by ChrisW67 would be easier, but of course your choice.
Cheers,
_
Thanks for all helping
Bookmarks