QTableView cell validation (specific validator for a column)
I am now working on GUI where I have standard QTableView with QStandardItemModel. This table contains 3 columns. I want to validate first two columns with one single validator. The third one should be without validation. Is it possible to do it in Qt?
I found a solution with a delegate but this checks whole table instead of specific columns (https://stackoverflow.com/questions/26614678/validating-user-input-in-a-qtableview)
I can always perform a "manual" validation after a form with the table is submitted but I would prefer a solution with QValidator.
I found a solution with a delegate but this checks whole table instead of specific columns
setItemDelegateForColumnto apply to a single column. you can apply the same delegate (i mean same instance) to multiple columns as long as the view is the same