2009/7/28 Saúl Ibarra <[email protected]>:

> In an application I'm displaying a simple dialog (GUI designed with QT
> designer) which show data from a database. Now I'm saving all data
> when user hits 'OK' button, but I'd like to do that _only_ if window
> data has been changed.

If you use a QSqlTableModel or a QSqlTableRelationalModel you can use
the .isDirty(index) function.

Simone Z

_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to