qt4 - sharing the same delegate between columns of QTableWidget -
i want use own delegates filtering user input in columns of qtablewidget. according the qabstractitemview class reference need delete delegates myself.
i don't want create , delete them every time when change structure of table. fine use same delegate in columns need validated. reference doesn't recommend share same delegate between views:
warning: should not share same instance of delegate between views. doing can cause incorrect or unintuitive editing behavior since each view connected given delegate may receive closeeditor() signal, , attempt access, modify or close editor has been closed.
obviously, 1 instance of editor can shown in qtablewidget @ same time.
is correct share same delegate between columns?
you have 1 editor open @ same time single view, closeeditor signal perspective, should safe.
Comments
Post a Comment