Re: [PyQt] How to close QSqlDatabase connection?

2007-11-18 Thread Sibylle Koczian
Am Mittwoch, 14. November 2007 16:13:43 schrieb Sibylle Koczian: I will try to find out more: can I put part of the code into main(), but not all of it? Can I use such a function, if I don't call it main()? And I will certainly use another database backend (firebird), but at the moment I

Re: [PyQt] How to close QSqlDatabase connection?

2007-11-14 Thread Sibylle Koczian
Am Montag, 12. November 2007 20:55:20 schrieb Hans-Peter Jansen: Am Montag, 12. November 2007 schrieb Sibylle Koczian: So I looked around and saw that I had this: def main(args): app = QtGui.QApplication(args) if not visa_conn(): sys.exit(1) visa_mf = VisaMF()

Re: [PyQt] How to close QSqlDatabase connection?

2007-11-12 Thread Sibylle Koczian
Am Sonntag, 11. November 2007 16:09:04 schrieb Hans-Peter Jansen: Dear Sibylle, I can only talk for PyQt3, through (yes, I'm retro..), but.. As far as I can see the version differences are particularly big in this area, because of the model/view design pattern. No QDataTable to start with.

Re: [PyQt] How to close QSqlDatabase connection?

2007-11-12 Thread Hans-Peter Jansen
Am Montag, 12. November 2007 schrieb Sibylle Koczian: So I looked around and saw that I had this: def main(args): app = QtGui.QApplication(args) if not visa_conn(): sys.exit(1) visa_mf = VisaMF() visa_mf.show() sys.exit(app.exec_()) if __name__ ==

[PyQt] How to close QSqlDatabase connection?

2007-11-11 Thread Sibylle Koczian
Hello, I'm trying to write a very small database application, but I can't get rid of this error message when I close the main window: QSqlDatabasePrivate::removeDatabase: connection 'qt_sql_default_connection' is still in use, all queries will cease to work. At the moment I'm using this code

Re: [PyQt] How to close QSqlDatabase connection?

2007-11-11 Thread Hans-Peter Jansen
Dear Sibylle, I can only talk for PyQt3, through (yes, I'm retro..), but.. Am Sonntag, 11. November 2007 schrieb Sibylle Koczian: Hello, I'm trying to write a very small database application, but I can't get rid of this error message when I close the main window: