[PyQt] Detecting GUI changes

simozack simozack at yahoo.it
Tue Jul 28 14:34:08 BST 2009


2009/7/28 Saúl Ibarra <saghul at gmail.com>:


> 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



More information about the PyQt mailing list