[PyKDE] UPDATE to Qvariant problem (it looks like)
Hans-Peter Jansen
hpj at urpla.net
Sat Jun 22 09:01:00 BST 2002
On Sat, 22 Jun 2002 00:45:50 +0100
"Phil Thompson" <phil at river-bank.demon.co.uk> wrote:
> Hans-Peter Jansen wrote:
>
> > I made a mistake in the QSqlFieldInfo call. The error message is now:
> >
> > QSqlField::setValue: monsalary cannot cast from QKeySequence to double
> >
> > Problem persists. Corrected version attached.
>
>
> I think I've fixed it - testing at the moment.
Confirmed. Marvelous!
> The problem is that PyQt allows you to use any value that Python can
> convert to an integer (like a double) in place of a QKeySequence. In the
> QVariant .sip file, the QVariant(QKeySequence) ctor appears before the
> QVariant(double) ctor and so takes precedence. The fix should then be to
> put QVariant(QKeySequence) at the end of the list of ctors.
Hopefully I will grow into understanding this machinery one day...
> I hope to release v3.3rc1 tomorrow (or, rather, later today).
Will try to prepare the sql examples today, then.
> Phil
Hans-Peter
More information about the PyQt
mailing list