On Tue, 7 Jun 2011 11:46:08 +0100, Daniele Esposti <[email protected]>
wrote:
> Well, datetime package doesn't support operations with QDate
> instances, for example QDateEdit().date() + datetime.timedelta(days=1)
> raises a TypeError.

Just use...

QDateEdit().date().toPyDate() + datetime.timedelta()

> IMHO it's more clear to return a datetime instance instead a Qt one,
> like the QLineEdit.tex() method returns a unicode string instead of a
> QString if the sip API level for QString is set to 2. Again, IMHO.

I felt that QDate and QTime were too useful to remove.

Phil
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to