On 08.10.2010 18:43, ext Martin Dunschen wrote:
Hi

I am transfering some code from PyQt to PySide.

I have problems with QSvgWidget, it does not seem to load content from a
byte array, instead it seems to try to open the byte array as a file.

This code snippet:

def LoadSVG(self, fn):
ba = QtCore.QByteArray(open(fn).read())
self.svgwidget.load(ba)

Martin,

first, sorry for not answering sooner.

I think this is a bug in PySide: the QByteArray and unicode argument types should be distinguished properly. Could you file a bug about this in our bugzilla at http://bugs.openbossa.org? This ensures the fastest fix for the issue.

Generally speaking, I always recommend filing a bug if you think it might be a PySide issue. Having a few invalid bugs aren't that harmful but unfixed bugs definitely are! :-)

Cheers,

ma.
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to