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:
QObject::connect(&quit,
SIGNAL(clicked
()),
&someWidget,
SLOT(resize
());
...
void SomeWidget::resize()
{
resize( 500, 500 );
}
QObject::connect(&quit, SIGNAL(clicked()), &someWidget, SLOT(resize());
...
void SomeWidget::resize()
{
resize( 500, 500 );
}
To copy to clipboard, switch view to plain text mode
Bookmarks