QTableWidget custom widget delegate



  • Hi!

    I want to add a custom widget (checkboxes with an ok button) to a QTableWidget cell. I know that I have to use delegate for that, but the delegate should not only appear in edit mode, but in default mode too. For example in default mode the chexboxes are shown only and in edit mode the ok button should appear too. Can you please give me an advice or tutorial how to do that?

    Thanks!



  • Page 193, "An Editable Column or Row Delegate", Advanced Qt Programming: Creating Great Software with C++ and Qt 4 (applies to Qt5 too)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.