In the first case the item delegate goes out of scope (you might want to allocate it on the heap instead). In the second case QDialog::exec() blocks so the stack object remains valid until the dialog is accepted or rejected.
In the first case the item delegate goes out of scope (you might want to allocate it on the heap instead). In the second case QDialog::exec() blocks so the stack object remains valid until the dialog is accepted or rejected.
J-P Nurmi
Aki-Matti (5th March 2008)
It works! I should've seen that happening myself, though...
Thank you for your help!
Bookmarks