almost absolute beginner here. This is the code for an example from the Qt docs:
#include <QObject>
class Counter : public QObject
{
Q_OBJECT
public:
Counter() { m_value = 0; }
int value() const { return m_value; }
public slots:
void setValue(int value);
signals:
void valueChanged(int newValue);
private:
int m_value;
};
value()
is a function?
So is the value
in the parameters for setValue(int value)
calling the function value()
without using the parenthesis and, hence, getting the return value of value()
to pass to setValue()?