<div dir="ltr">Hi all,<br><div><br></div><div>I have written a delegate to get a simple checkbox in a cell.</div><div>To my surprise it all started working when I simply used index.model().setData() inside the createEditor method.</div><div><br></div><div>I am please that it works but it doesn't feel right as I expected to have to commit data or something (I might just be getting confused because I am using  QTableWidget this time, not a view where one has to do a few more things  manually)</div><div><br></div><div>This my delegate code:</div><div><a href="https://pastebin.com/zgzTvcWQ">https://pastebin.com/zgzTvcWQ</a><br></div><div><br></div><div>The table widget has a mousePresEvent that starts editing cells on click to avoid having to triple click the checkbox.</div><div><br></div><div>So yeah, it seems to work, but can somebody have a quick peek and let me know if this is reliable or if I should be doing more to complete the editing of the model data properly?!</div><div><br></div><div>Cheers,</div><div>frank</div></div>