[PyKDE] QSqlRecordInfo iteration...
Hans-Peter Jansen
hpj at urpla.net
Thu Jul 4 22:37:00 BST 2002
On Thu, 4 Jul 2002 22:24:24 +0200
"Hans-Peter Jansen" <hpj at urpla.net> wrote:
> On Thu, 04 Jul 2002 18:48:11 +0100
> "Phil Thompson" <phil at river-bank.demon.co.uk> wrote:
>
> > Yuck. Throughout the rest of PyQt a QValueList is mapped to a Python
> > list. It would be fairly easy (and consistent) to map a QSqlRecordInfo
> > to a Python list of QSqlFieldInfo instances.
> >
> > The only disadvantage I can see is that you would lose the toRecord()
> > method.
> >
> > The other approach is to add the methods you need from QValueList into
> > QSqlRecordInfo - SIP doesn't care if methods aren't in the right place,
> > so long as the compiler is happy. However, it looks like most of the
> > potentially useful QValueList methods deal with iterators - which SIP
> > won't like.
> >
> > Phil
>
> I'm staring on the code for a couple of hours now, but don't get a
> grip on it. I think, the best way would be adding a method toList to
> QSqlRecordInfo, but I'm missing some sip pieces, yet. Would you mind
> being helpful once again. I swear, I will have a look into the diffs
> this time.
>
> Hans-Peter
P.S.: As a small return value I promise to prepare a sqlex equivalent
example. Deal?
More information about the PyQt
mailing list