I want to get a single timer to run for several objects.
If I put this in the header file of my class:
static QTimer* timer = new QTimer(this);

It says: « 'this' cannot appear in a constant-expression ». I understand i cannot use 'this', since I want a class member, not an object member (I guess that makes sense), but I don't know how to solve it. How do I put it then?

Thanks in advance.

PF91