First of all QApplication isn't a widget, so you can't resize it. Secondly QWidget::resize() isn't a slot, but a normal method, so you can't connect any signals to it. Also you can't put parameter values inside SLOT() and SIGNAL() macros.

You need a custom slot to do this:
Qt Code:
  1. QObject::connect(&quit, SIGNAL(clicked()), &someWidget, SLOT(resize());
  2. ...
  3. void SomeWidget::resize()
  4. {
  5. resize( 500, 500 );
  6. }
To copy to clipboard, switch view to plain text mode