Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Widgets out of scope?
Dn588 last edited by
I am trying to write a program that stores staff details in a container and also writes it to a file. I keep getting error messages saying that the gui widgets I am trying to read the data from are not declared in the scope of the slot submit_button_clicked. I declared the widgets in the gui constructor shouldn't it then also be accessible to the submit_button_clicked slot?
Change to void staffgui::submit_button_clicked(). Scope resolution is missing for submitt_button_clicked()..