I created a new dialog using Qt Creator (version 4.7.0) - one of the template forms (with the "OK" and "Cancel" buttons).
I want the user to enter some data in the form, and then when they click "OK", he saves this information. Thus, I looked and saw that when I click "OK", it sends and signals a slot for receiving a dialogue.
So, I right-clicked on the dialog in the project view and selected "Go to slot ...". I clicked on the βacceptedβ option, which placed the on_Dialog_accepted () method in the dialogs class. However, when I run the program and open a dialog, I get an error message in my console sayingQMetaObject::connectSlotsByName: No matching signal for on_Dialog_accepted()
So what have I done wrong?
I found documentation called connectSlotsByName, but nothing about any obvious errors that an inexperienced Qt developer might get.
source
share