Reputation: 186
i'm having an issue with the following signal-slot
QCheckBox *hasNotify = new QCheckBox;
connect(hasNotify, SIGNAL(stateChanged(int state)), this, SLOT(showhideNotify(int state)));
I get this in my application output
QObject::connect: No such signal QCheckBox::stateChanged(int state)
But here http://qt-project.org/doc/qt-5/qcheckbox.html#stateChanged they say this signal is included in QCheckBox, so I'm confused about what the problem is.
Upvotes: 3
Views: 3925