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

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -