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 ....
Qt Code:
  1. connect(cmdExit, SIGNAL(clicked()), qApp, SLOT(quit()));
To copy to clipboard, switch view to plain text mode 

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.