I have a tree model and use QDataWidgetMapper
to map the model data to some widgets.
In the model, some of the data are flagged as read-only, so, what I would like to do is to let the mapped widget, say, a QLineEdit
, be able to act upon this flag and set itself to readonly when the model data it points to is readonly.
Any help is appreciated!