Originally Posted by
Mariane
What does "non-aggregate" mean, anyway?
It means that it's not a struct or class. For example int, char, pointer etc.
The problem is that this error shouldn't happen with such main() function:
int main( int argc, char ** argv )
{
MainForm w;
w.show();
a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
return a.exec();
}
int main( int argc, char ** argv )
{
QApplication a( argc, argv );
MainForm w;
w.show();
a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
return a.exec();
}
To copy to clipboard, switch view to plain text mode
It would occur if you had:
MainForm *w = new MainForm();
MainForm *w = new MainForm();
To copy to clipboard, switch view to plain text mode
or
MainForm *w;
MainForm *w;
To copy to clipboard, switch view to plain text mode
.
Bookmarks