PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 252 - qt_sql_default_connection still in use with PySide but not with PyQt4
: qt_sql_default_connection still in use with PySide but not with PyQt4
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: PySide
: 0.3.2
: PC Linux
: P5 normal
Assigned To: renato filho
: http://paste.pocoo.org/show/228952/
:
:
  Show dependency treegraph
 
Reported: 2010-06-23 12:33 EEST by Marcus Strube
Modified: 2010-08-04 15:13 EEST (History)
7 users (show)

See Also:


Attachments
It's a backup copy from the pastebin link (1.10 KB, text/plain)
2010-07-20 16:43 EEST, Luciano Wolf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus Strube 2010-06-23 12:33:57 EEST
Hi, while playing around with table model and a list view I always got

QSqlDatabasePrivate::removeDatabase: connection 'qt_sql_default_connection' is
still in use, all queries will cease to work.

When I use the example from above with PyQt4 I do not get this message. (The
code in the pastebin is with PyQt4!)
Comment 1 Hugo Parente Lima 2010-06-23 14:45:37 EEST
Do you have some code snippet to help us to fix the problem?
Comment 2 Hugo Parente Lima 2010-06-29 11:07:19 EEST
Your example works for me, commenting the line: 

self.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers);

I am able to edit the table model without problems, btw I'm using git HEAD not
version 0.3.2.
Comment 3 Hugo Parente Lima 2010-07-07 18:11:10 EEST
One week has been passed without feedback, so I'm changing the bug status to
"works for me".
Comment 4 Luciano Wolf 2010-07-14 19:12:08 EEST
Still broken
Comment 5 Luciano Wolf 2010-07-20 14:38:30 EEST
Fixed on trunk

Shiboken commit:
b47c32c81fca966740f790992f1b00f23bf49ada
PySide commit:
cb7d3e95a27392e504f3b99deacddb3a3e0a8a56
Comment 6 Luciano Wolf 2010-07-20 16:43:55 EEST
Created attachment 55 [details]
It's a backup copy from the pastebin link

That pastebin website was down a few days ago. I'm uploading a backup copy to
our bugzilla.