[Qt-interest] Model/View Programming - User Error Management

Alessandro Vanzulli alessandro.vanzulli at gmail.com
Thu Mar 5 10:02:34 CET 2009


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 user.... an information
regarding the error by a tooltip.... or something similar?

Thanks a lot to all.

Bye Bye

Alessandro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090305/124efd59/attachment.html 


More information about the Qt-interest-old mailing list