I'm trying to set up a signal/slot for a change in variable value.
The variable is global, ::gOper
In the class it is declared in, is the following code:
connect(gOper, SIGNAL(valueChanged()), this, SLOT(updateStats()));
connect(gOper, SIGNAL(valueChanged()), this, SLOT(updateStats()));
To copy to clipboard, switch view to plain text mode
But, it doesn't compile.
error: no matching function for call to `MainWindow::connect(QString&, const char*, MainWindow* const, const char*)'
So how do you refer to the variable? Or what am I doing wrong?
Bookmarks