Hey, I’m using a QDataWidgetMapper for some input fields (QLineEdit’s). These input fields also have a custom QValidator assigned that will trim excess spaces from the front and back of the input via the QValidator’s fixup() function. The problem I’m having is it appears that the QItemDelegate for the QDataWidgetMapper is calling it’s setModelData() function BEFORE the QValidator can call it’s fixup() function.
The outcome is the UI (QLineEdit) shows one thing, but the model shows another. This seems to be a bug to me. I’m pretty sure this issue could be duplicated with *any* QValidator that has a fixup() function that modifies the editor’s data (QIntValidator for instance). Does anyone know of a way to ensure that fixup() gets called correctly? -Jason _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest