PDA

View Full Version : Model/View Programming - User Error Management



Zuzzu
4th March 2009, 16:39
Hi,

i'm developing a custom model that will be loaded inside some View Components with the capabilities to edit the model data using the specific delegate.

It is not clear how to manage the following case:
- user enter to edit a specific field
- the user enters an invalid value
- the view/model structure call the setModelData that is it actually (in my implementation) validating the value. If the value is not valid, I can return the false value and the editor is kept open.

How can I implement a system to provide to the use.... an information regarding the error by a tooltip.... or something similar?

Thanks a lot to all.

Bye Bye

Alessandro