PDA

View Full Version : Autosave in a spinbox delegate



SailinShoes
18th August 2008, 13:14
I want to auto save when the user changes a value in a spinbox delegate. But how do I update a spinbox delegate editor model without closing the editor(not perform commitData and closeEditor)?

wysota
19th August 2008, 00:49
You can call setModelData manually or emit commitData() from the delegate.

SailinShoes
19th August 2008, 07:20
I have followed your advice and used commitdata()...works like a charm! Thank you wysota.