On Freitag, 6. Februar 2009, Mattia Borsalino wrote:
> class MyDatabase(QSqlDatabase):
>     """
>     subclasses QSqlDatabase
>     """
>     def __init__(self, parent=None):
>         super(MyDatabase, self).__init__(parent)

according to the docu, parent should either not be passed or it
should be another QSqlDatabase. 

this works:

     def __init__(self, parent=None):
         super(MyDatabase, self).__init__()


-- 
Wolfgang
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to