PDA

View Full Version : QWidget* of createEditor



baray98
5th January 2008, 01:30
Hi All,

I was wondering whos gonna delete the QWidget* returned by,


QWidget * QItemDelegate::createEditor ( QWidget * parent, const QStyleOptionViewItem & option, const QModelIndex & index ) const


baray98

yogeshgokul
5th January 2008, 06:30
i think that pointer in pointing to NULL after deletion. means function returns a null pointer after deletion. It will delete all data but pointer of no use..

jpn
5th January 2008, 09:33
It's up to the view to release editors. Persistent editors are kept alive, temporary editors get deleted for example when they loose focus.

baray98
5th January 2008, 17:48
So i don't have to worry about managing all these customs widget popin out in my customs edit on my tree view....

anymore stuff that i have worry about regarding implementing a custom editor?

baray98