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 613 - QSvgRenderer chooses QByteArray overload when given a file path
: QSvgRenderer chooses QByteArray overload when given a file path
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: PySide
: 1.0.0 beta3
: All All
: P3 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-01-13 15:08 EET by Patrick Hartling
Modified: 2011-02-02 15:46 EET (History)
8 users (show)

See Also:


Attachments
Use of QSvgRenderer with an str object providing the path to an SVG file (272 bytes, text/plain)
2011-01-13 15:08 EET, Patrick Hartling
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Hartling 2011-01-13 15:08:58 EET
Created attachment 220 [details]
Use of QSvgRenderer with an str object providing the path to an SVG file

Method overload decisions in QSvgRenderer prefer QByteArray overloads to
QString overloads. This prevents loading an SVG into a QSvgRenderer when the
path to a file is supplied as a Python str object. The attached program
demonstrates the issue.
Comment 1 Matti Airas 2011-01-14 07:46:33 EET
Thanks for the bug report and the test case - prioritizing P3.
Comment 2 Hugo Parente Lima 2011-01-31 14:46:25 EET
fixed in commit:
shiboken/47c7ea62996992d5e6b68f67c914f7d7bdf71864
PySide test in:
pyside/e17795d35b6ce7a65ff55d1c5553b2488d45afa9

QString now are always evaluated before QByteArray arguments
Comment 3 renato filho 2011-02-02 15:46:08 EET
released on beta 5