Same mistake again. Parentheses.
Yes, sorry. I haven't switched over to the Qt 5 style of connect(), so I goofed on the syntax. Should have been obvious C++ that the expression for the address of a member function doesn't contain parentheses.
connect(counting, &counter::Increment_Count(10), ui->progressBar, &QProgressBar::setValue());
In any case, even if you used the old SIGNAL() and SLOT() syntax for the connect() statement, you can't pass in a value as you apparently are trying to do here. The macros are simply the signature of the method with only the parameter types, no variable names or values. The return value is assumed to be void and is ignored anyway. So the equivalent SIGNAL / SLOT version of your connect() should be:
connect(counting, SIGNAL( Increment_Count(int) ), ui->progressBar,SLOT( setValue(int) ));
connect(counting, SIGNAL( Increment_Count(int) ), ui->progressBar,SLOT( setValue(int) ));
To copy to clipboard, switch view to plain text mode
Bookmarks