qt - How to make compiler check what's given to SIGNAL()? -
in writing qt4 app, clumsily wrote:
qobject::connect(spinbox, signal(vlauechanged(int)), ....
and compiled, , ran, of course spinbox didn't have effect.
such misspellings should caught. assumed valuechanged() declared in header file, apparently not. arbitrary garbage can given signal() or slot(), , it'll compile. toy program small. huge app dynamically created controls connected on fly, error hard track down.
is there way error checking kind of typo? possible compiler (gcc) this, or other tool appropriate?
this has been changed qt5. can read here.
Comments
Post a Comment