URPradhan
9th July 2009, 14:57
Hi
In my dialog class I have a command button meant for application exit. And in my dialog's constructor I'm trying to connect the button click signal with application's quit slot, like ....
connect(cmdExit, SIGNAL(clicked()), qApp, SLOT(quit()));
But, the compiler giving error, saying qApp was not declared in this scope !!! But as per docs its a macro which gives the pointer to application's instance.
Please help.
In my dialog class I have a command button meant for application exit. And in my dialog's constructor I'm trying to connect the button click signal with application's quit slot, like ....
connect(cmdExit, SIGNAL(clicked()), qApp, SLOT(quit()));
But, the compiler giving error, saying qApp was not declared in this scope !!! But as per docs its a macro which gives the pointer to application's instance.
Please help.