I have a problem with a class I am trying to implement. Basically, I want to start a singleshot timer when the class gets constructed and connect it to one of the classes slots. At the moment my constructor looks like this:

```
myclass::myclass(int time)
{
    QTimer::singleShot(time, this, SLOT(myslot()));
}

```

And produces the error in the title. I already found out that myclass has to be a Q\_OBJECT but this didn't fix the error. Any ideas?
Thanks in advance!