PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 427 - QSvgWidget, load from QtCore.QByteArray does not work
: QSvgWidget, load from QtCore.QByteArray does not work
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtSvg
: HEAD
: All All
: P3 major
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-10-21 12:25 EEST by Martin
Modified: 2010-11-25 17:48 EET (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin 2010-10-21 12:25:56 EEST
Loading SVG content using the load method for a QtCore.QByteArray does not
work, instead it tries to open the string in the bytearray as a file.

code snippet to illustrate:

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

does give an error message.
Comment 1 Hugo Parente Lima 2010-11-05 17:17:07 EET
Fixed in commit:

pyside/a029d217c2ae26aedb89e472ccdf61d20ec7fd26
Comment 2 renato filho 2010-11-25 17:48:15 EET
released on 1.0.0~beta1