Well...
Unless i explicitely delete pLocalLister, i never get destructor debug from my objects.
Let me summarize how they are made:
class IFilesLister
: public QObject { Q_OBJECT
public:
IFilesLister(void);
virtual ~IFilesLister(void);
// The following method calls "DoFetchContent" which is virtual...
bool FetchContent
(const CNodeDesc
& cParent,
QObject* pUserData
=0);
protected:
virtual bool DoFetchContent
(const CNodeDesc
& cParent,
QObject* pUserData
) = 0;
};
class IFilesLister : public QObject {
Q_OBJECT
public:
IFilesLister(void);
virtual ~IFilesLister(void);
// The following method calls "DoFetchContent" which is virtual...
bool FetchContent(const CNodeDesc& cParent, QObject* pUserData=0);
protected:
virtual bool DoFetchContent(const CNodeDesc& cParent, QObject* pUserData) = 0;
};
To copy to clipboard, switch view to plain text mode
And then:
class CFilesLister_File : public IFilesLister {
Q_OBJECT
public:
CFilesLister_File(void);
CFilesLister_File(const QString& cBasePath_p);
virtual ~CFilesLister_File(void);
protected:
virtual bool DoFetchContent
(const CNodeDesc
& cParent,
QObject* pUserData
);
};
class CFilesLister_File : public IFilesLister {
Q_OBJECT
public:
CFilesLister_File(void);
CFilesLister_File(const QString& cBasePath_p);
virtual ~CFilesLister_File(void);
protected:
virtual bool DoFetchContent(const CNodeDesc& cParent, QObject* pUserData);
};
To copy to clipboard, switch view to plain text mode
So, what am i doing wrong here?
[EDIT:] Wooops sorry my misstake, my objects don't "register" to their parent 
Sorry for this time.
Thanks!
Pierre.
Bookmarks