[PyKDE] UPDATE to Qvariant problem (it looks like)
phil at river-bank.demon.co.uk
Sat Jun 22 01:49:01 BST 2002
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.
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.
I hope to release v3.3rc1 tomorrow (or, rather, later today).
More information about the PyQt