I'm getting a "QMetaObject::connectSlotsByName: No matching signal for on_radioButton(bool)" error in the debug output of my project when it runs.
The signals and slots actually work OK, but this message is output.
I'm using something like this:
Window::Window()
{
setupUi(this);
connect(xy_radioButton,SIGNAL(clicked(bool)),this,SLOT(on_radioButton(bool)));
....
}
void Window:: on_radioButton(bool checked)
{
...
}
Window::Window()
{
setupUi(this);
connect(xy_radioButton,SIGNAL(clicked(bool)),this,SLOT(on_radioButton(bool)));
....
}
void Window:: on_radioButton(bool checked)
{
...
}
To copy to clipboard, switch view to plain text mode
In the header I have:
private slots:
void on_radioButton(bool);
private slots:
void on_radioButton(bool);
To copy to clipboard, switch view to plain text mode
Any ideas why this message is output, but it still actually works OK?
Bookmarks