As I've posted in your other thread, someday you will regret such thing:
struct moduleFieldDef
{
...
};
struct moduleFieldDef
{
...
QAbstractItemDelegate* delegate;
};
To copy to clipboard, switch view to plain text mode
What if you pass this pointer to a view and it gets deleted ? You are left with dangling pointer. I think its better safe than sorry :
struct moduleFieldDef
{
...
QPointer<QAbstractItemDelegate> delegate;
};
struct moduleFieldDef
{
...
QPointer<QAbstractItemDelegate> delegate;
};
To copy to clipboard, switch view to plain text mode
QPointer
Bookmarks