[PyQt] Storing QString/Unicode in Sqlite Database

Hans-Peter Jansen hpj at urpla.net
Tue Nov 15 22:42:48 GMT 2011


On Wednesday 09 November 2011, 10:29:55 Tayfun Kayhan wrote:
> Thank you, the first one is working well. I tried setting API V2 but
> it gave an error which says that it has been already set to V1. I'll
> try fixing this, as well.

Quoting
http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/incompatible_apis.html
(the link, that you got from Andrei):

	An application calls sip.setapi() to set the version number of a 
	particular API. This call must be made before any module that
	implements the API is imported. Once set the version number cannot be
	changed.

In short, before your very first:

	from PyQt4 import QtCore, QtGui

Pete


More information about the PyQt mailing list