[Solved] No access to qApp
General and Desktop
3
Posts
2
Posters
2.5k
Views
1
Watching
-
I've got a pretty simple application, but I'm not able to see the global variable, qApp. My main function is very simple:
@
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();return a.exec();}
@Then, inside the constructor of w (a QMainWindow) I'm trying to set up a translation and have the line:
@
qApp->installTranslator(.....
@It tells me that qApp has not been declared in this scope. I thought it was automatically declared without me having to do anything. Why can't I access it?