[PyKDE] RE: Python crash with qtsql.QSqlDatabase

Tuvi, Selim stuvi at slac.stanford.edu
Wed May 5 00:10:01 BST 2004

I was able to reproduce the problem with a C++ Qt app. I'll post a bug report with Trolltech support.


Selim Tuvi, Research Engineering Group, SLAC
GLAST, I&T Online, MS 98
Tel:650-926-3376 Fax:650-926-4335

-----Original Message-----
From: Phil Thompson [mailto:phil at riverbankcomputing.co.uk] 
Sent: Tuesday, May 04, 2004 2:22 PM
To: Tuvi, Selim
Cc: pykde at mats.imk.fraunhofer.de
Subject: Re: Python crash with qtsql.QSqlDatabase

On Tuesday 04 May 2004 12:48 am, Tuvi, Selim wrote:
> Not sure if this is a Qt bug or a PyQt bug but I am getting a crash on the 
last line of the following session (db.open()):
> >>> from qt import *
> >>> from qtsql import *
> >>> a = QApplication()
> >>> import sys
> >>> a = QApplication(sys.argv)
> >>> db = QSqlDatabase.addDatabase('QMYSQL3')
> >>> db.isOpen()
> False
> >>> db.open()
> Granted, I am trying to open the database without specifying the host, the
> name or the user id but I was expecting an exception.
> Running on Windows XP, SIP 4 (snapshot-20040411), PyQt 3.11 commercial, Qt
> 3.3.1 academic.

It works as expected on Linux - which would suggest it's not a PyQt problem. 
Can you tell where it's crashing?


More information about the PyQt mailing list