Hi all,
I have a QTableView where I've created my own delegate to draw checkboxes for a column. I re-implemented paint() and use drawCheck(...) inside.
I have two problems;
1) The checkox is not immediately accessible when I click on a cell, I have to double-click the cell to activate the editor. What can I do to make the checkbox active immediately so the the user can just click once to toggle the value?
2) The editor becomes left-justified in the cell (see attachment). I want it to be centered just like the paint() method draws them.
Any advice would be appreciated.
Thanks,
Ingemar
Bookmarks