Sunday, August 14, 2011

No such signal ! (QT)

if in QT the slot and signals do not seem to work and you get errors like

Object::connect: No such signal QTableWidget::cellChanged

in the stderr , most likely it can be fixed by

removing the variable names from the call to connect

e.g

SIGNAL(cellChanged(int ,int ))

instead of

SIGNAL(cellChanged(int r,int c ))