Answer the question
In order to leave comments, you need to log in
Why does the "No such slot" error occur?
Hello!
There are slots. There are no problems with them. Added one more by analogy.
In the header file in public slots: I wrote void UserSettingsSave ();
In the method void UserSettings(); wrote:
save_button->connect(save_button, SIGNAL(clicked(bool)), this, SLOT(UserSettingsSave()));
QObject::connect: No such slot MainWindow::UserSettingsSave()
QObject::connect: (sender name: 'save_button')
QObject::connect: (receiver name: 'MainWindow')
profile_button->connect(profile_button, SIGNAL(clicked(bool)), this, SLOT(UserProfile()));
Answer the question
In order to leave comments, you need to log in
Sometimes Qt Creator glitches and a complete recompilation of the project is required.
For some reason, MOC did not start.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question