[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyKDE] QStringList &QStringList::operator+=(const QString &)
From:       Nigel Stewart <ns () fluent ! com>
Date:       2006-03-25 0:53:23
Message-ID: 44249483.7000801 () fluent ! com
[Download RAW message or body]

Hello all,

I noticed that operator+=(const QString &) doesn't work from
Python, even though it is documented as part of the Qt 3.3 API:

http://doc.trolltech.com/3.3/qvaluelist.html#operator+-eq

Works:
         l = QStringList()
         l.append("Hello")
         l.append("World")

Doesn't work:
         l = QStringList()
         l += QString("Hello")
         l += QString("World")

Perhaps it needs to be added to qstringlist.sip

PyQt-x11-gpl-snapshot-20060323/sip/qt $ grep operator qstringlist.sip
         QString operator[](int);
         QStringList operator[](SIP_PYSLICE);
         QStringList operator+(const QStringList &);
         QStringList &operator+=(const QStringList &);
         QStringList operator*(int);
         QStringList &operator*=(int);
         bool operator==(const QStringList &);
         bool operator!=(const QStringList &);

Since I switch a lot between C++ and Python perhaps I'm more likely
than most to discover this kind of issue. :-)

We're using Sip 4.3.2 and PyQt 3.15.1

Regards,

Nigel Stewart

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic