[PyQt] PyQt book: problem with database example

Sibylle Koczian Sibylle.Koczian at t-online.de
Wed Jan 9 20:00:04 GMT 2008


the assetmanager.pyw example doesn't seem to work correctly, or I'm using it 

- The logs view always shows one empty line after the records belonging to the 
selected asset. Why? When I try to write such a master-detail dialog myself, 
using the asset manager as a model, I get even more empty lines, and their 
number changes. Should I try to shrink it to a minimal example still showing 
the problem, or is this a known issue?

- After leaving the application I get the error 
message "QSqlDatabasePrivate::removeDatabase: 
connection 'qt_sql_default_connection' is still in use, all queries will 
cease to work."  I have had this message in my own programs - it went away, 
when I didn't define a "main" funktion, but put its content directly 
under "if __name__ == '__main__':". But I never understood why this should be 

Thank you for hints,

Dr. Sibylle Koczian

More information about the PyQt mailing list