[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyQt] No QString::fromUtf16, what instead?
From: "=?UTF-8?Q?Filip_Gruszczy=C5=84ski?=" <gruszczy () gmail ! com>
Date: 2008-12-24 23:35:36
Message-ID: 1be78d220812241535x7863d1d8j5adff0dec101ee28 () mail ! gmail ! com
[Download RAW message or body]
Hi!
I am trying to retrieve filepath from icon drop on Windows. There is
format application/x-qt-windows-mime;value="FileNameW", which holds
proper path (there is also
application/x-qt-windows-mime;value="FileName", but it returns some
kind of abbreviated path, where each part is 8 chars long, argh, I
don't know this windows stuff). I can't turn it into a nice string -
what I get is string with spaces, because of zeroes in wchar. How can
I convert it easily into a QString? For Qt there is fromUtf16 or
fromUcs2, although none of them gets byte array. What should I use
with PyQt? There is only one constructor, which takes byte array, but
i expects Ansi Chars, so stops after first character. How can I easily
convert it to QString (or, even better, to a python string)?
--
Filip GruszczyĆski
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic