I tried using designer to draw a main window in which to include my widget.

But it won't compile :
error: request for member `show' in `w', which is of non-aggregate
type `MainForm*'

Below is the code and commented out are things I've tried...


int main( int argc, char ** argv )
{
QApplication a( argc, argv );
MainForm w;
// MainForm *w = new MainForm;
// MainForm w = new MainForm;
w.show();
a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
return a.exec();
}

(I've done the tutorial 2 of the designer and EXACTLY THE SAME main.cpp
compiles fine...)

Mariane