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 258 - QGraphicsSvgItem argument type error
: QGraphicsSvgItem argument type error
Status: CLOSED INVALID
Product: PySide
Classification: Unclassified
Component: QtSvg
: HEAD
: PC Linux
: P5 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-07-04 18:13 EEST by christomania
Modified: 2010-08-13 11:21 EEST (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description christomania 2010-07-04 18:13:09 EEST
Trying to call setSharedRenderer on QGraphicsSvgItem, I get some type error :

self.svg_renderer = QtSvg.QSvgRenderer(":/SVG/lights.svg")
self.none_item = QtSvg.QGraphicsSvgItem
self.none_item.setSharedRenderer(self.svg_renderer)

=> TypeError: descriptor 'setSharedRenderer' requires a
'PySide.QtSvg.QGraphicsSvgItem' object but received a
'PySide.QtSvg.QSvgRenderer'
Comment 1 christomania 2010-07-04 18:36:13 EEST
(En réponse au commentaire 0)
> Trying to call setSharedRenderer on QGraphicsSvgItem, I get some type error :
> 
> self.svg_renderer = QtSvg.QSvgRenderer(":/SVG/lights.svg")
> self.none_item = QtSvg.QGraphicsSvgItem
> self.none_item.setSharedRenderer(self.svg_renderer)
> 
> => TypeError: descriptor 'setSharedRenderer' requires a
> 'PySide.QtSvg.QGraphicsSvgItem' object but received a
> 'PySide.QtSvg.QSvgRenderer'

sorry, joined example code is badly written
QGraphicsSvgItem -> QGraphicsSvgItem()

No bug here