[PyKDE] [PyQt4] QDate.toString(QtCore.Qt.TextDate) is not UTF-8

Ismail Donmez ismail at uludag.org.tr
Thu Jan 26 13:10:59 GMT 2006


Per 26 Oca 2006 11:29 tarihinde, Andreas Pakulat şunları yazmıştı: 
> On 26.01.06 03:15:54, Ismail Donmez wrote:
> > I am doing something like this QStatusBar.showMessage("Foo - %s" %
> > QDate.toString(QtCore.Qt.TextDate))
>
> Does it work with:
>
> QStatusBar.showMessage(QtCore.QString("Foo -
> %1").arg(QDate.toString(QtCore.Qt.QTextDate)))

This one works fine too, guess there is a problem with %s, Phil can you 
comment on this?

Regards,
ismail




More information about the PyQt mailing list