ayanda83
17th February 2017, 11:02
Hi there guys. I have this abstract class below.
class Page : public QObject
{
Q_OBJECT
public:
explicit Page(QObject *parent = 0);
virtual void start_downloading() = 0;
signals:
void done();
public slots:
}; As you can see that there is a signal Page::done() in the class. I have a bunch of concrete classes that inherit this class and the concrete classes will emit the signal Page::done() above. I have a separate class that works with the concrete classes and problem is connecting the above signal to any slot and I suppose its because the signal exists in an abstract class. Is there a way of connecting this signal.
class Page : public QObject
{
Q_OBJECT
public:
explicit Page(QObject *parent = 0);
virtual void start_downloading() = 0;
signals:
void done();
public slots:
}; As you can see that there is a signal Page::done() in the class. I have a bunch of concrete classes that inherit this class and the concrete classes will emit the signal Page::done() above. I have a separate class that works with the concrete classes and problem is connecting the above signal to any slot and I suppose its because the signal exists in an abstract class. Is there a way of connecting this signal.