Using Connect Method outside a QObject inherited class
-
You can inherit your
MiServicio
from QObject too, afaik.
Like this:class MiServicio : public QObject, public QtService<QCoreApplication> { Q_OBJECT ...
-
Hi,
Just one detail here: when you inherit from multiple classes: you can only have one QObject base and it should the first. More information about this can be found in QObject's documentation.
-
Or you can use virtual inheritance :)