ahh, one more thing:
when I try:
class Refrigerator : public BaseDevice, public Logger
class Refrigerator : public BaseDevice, public Logger
To copy to clipboard, switch view to plain text mode
thus inheriting the logger
I get a error on trying to connect things:
connect(view, SIGNAL(elementClicked(int /*index*/, int /*state*/)), fridge, SLOT(setSwitch(int /*index*/, int /*state*/)));
connect(view, SIGNAL(elementClicked(int /*index*/, int /*state*/)), fridge, SLOT(setSwitch(int /*index*/, int /*state*/)));
To copy to clipboard, switch view to plain text mode
My logger is
class Logger : public QThread
To copy to clipboard, switch view to plain text mode
and the error is can't uniquely convert from class Refrigerator * to const class QObject *
Will I have to restructure Logger before inheriting it?
K
Bookmarks