Hi all,

I have a problem which I have no answer for....
I have created a class which is derived from QObject, and does implement an interface. For this class I do have added a copy constructor so that I can use it for Qt's collection classes like QList etc...
The relevant part of the header file does look like this:
Qt Code:
  1. class CVO_StreamInfo : public QObject, public IVO_StreamInfoBase
  2. {
  3. Q_OBJECT
  4. Q_INTERFACES ( IVO_StreamInfoBase IVO_DataObject );
  5.  
  6. public:
  7. CVO_StreamInfo(QObject *parent = 0);
  8. ~CVO_StreamInfo();
  9. //
  10. CVO_StreamInfo(const CVO_StreamInfo& streamInfo);
  11. CVO_StreamInfo& operator=(const CVO_StreamInfo& streamInfo);
  12. //
  13. IVO_DataObject::ObjectVersion objectVersion() const;
  14. quint32 hash() const;
  15. //
  16. ...
To copy to clipboard, switch view to plain text mode 

The class does work perfectly, and the code compiles. However the compiler does throw a warning:
"class IVO_StreamInfoBase should be explicitly initialized in the copy constructor..."

But since the IVO_StreamInfoBase is an interface with all pure virtual methods with no constructor available, what is it that I have to do to get rid of this warning?

Any idea?
The source of the copy constructor method does look like this:
Qt Code:
  1. CVO_StreamInfo::CVO_StreamInfo(const CVO_StreamInfo& streamInfo) : QObject(0)
  2. {
  3. // Make a copy of all properties
  4. ...
To copy to clipboard, switch view to plain text mode 


Thanks,
Michael