Hi,
How do I pass the signals reference to the slot function? Take this snippet as an example:
connect(button,
SIGNAL( mySignal
(QString) ),
this,
SLOT( mySlot
(QString) ));
void MainWindow
::mySlot(const QString &title
) {
// how can I get the button reference in here?
}
connect(button, SIGNAL( mySignal(QString) ), this, SLOT( mySlot(QString) ));
void MainWindow::mySlot(const QString &title)
{
// how can I get the button reference in here?
}
To copy to clipboard, switch view to plain text mode
I tried to pass "this" in mySignal but it doesn't seem to work...
Bookmarks