On Tue, 26 Aug 2003 17:02:23 +0200 martin-ml hippogriff de wrote: > You must pass an object to SigC::slot() > (unless MainWindow::newGatewayPressed() is static): > > e.g. > > newGatewayButton.signal_clicked().connect( > SigC::slot(*this, &MainWindow::newGatewayPressed)); Ok, but how do I set up a signal handler when defining a class? I guess I could pass a pointer to the object to the constructor of the class but that doesn't sound like a elegant solution.
Attachment:
pgp4qjYNXojm8.pgp
Description: PGP signature