I’ve spent a couple of days trying to get a my QPushButton to fire and signal and recognizing a slot. The strange thing is I’ve gotten gotten other button to work perfectly, and I set up this button the same exact way as the ones that work. But when the connect statement is executed on this one I get …
QObject::connect: No such slot QtVTKApp::setWidgetsEnabled()
I read something in StackOverflow that referenced the “moc_classname.cpp” file. Should that file be recreated every time I build? And if so, what do I do to fix it if it’s not recreating? Please let me know if you need clarification.
Here is the VS C++_statement that generates the “No such slot” message…
“connect(this->ui->setWidgetsEnabledToggle, SIGNAL(pressed()), this, SLOT(setWidgetsEnabled()));”
the button clickable property is set to true to making it a toggle.