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 159 - QByteArray operator "const char*" not supported
: QByteArray operator "const char*" not supported
Status: CLOSED INVALID
Product: PySide
Classification: Unclassified
Component: QtCore
: HEAD
: All All
: P5 minor
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-02-22 20:31 EET by Lauro Moura
Modified: 2010-11-25 17:53 EET (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lauro Moura 2010-02-22 20:31:50 EET
Needed in QImage.save(..., format=const char *)
Comment 1 Lauro Moura 2010-03-24 16:53:59 EET
Still valid in the current shiboken-based bindings

>>> a = QImage('aaa.jpg', QByteArray('PNG'))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'PySide.QtGui.QImage' called with wrong argument types:
  PySide.QtGui.QImage(str, PySide.QtCore.QByteArray)
Supported signatures:
  PySide.QtGui.QImage()
  PySide.QtGui.QImage(PySide.QtGui.QImage)
  PySide.QtGui.QImage(PySide.QtCore.QSize, PySide.QtGui.QImage.Format)
  PySide.QtGui.QImage(PySide.QtCore.QString, str = None)
  PySide.QtGui.QImage(int, int, PySide.QtGui.QImage.Format)
>>>
Comment 2 Matti Airas 2010-11-22 14:50:02 EET
Python strs appear to work now. Resolving INVALID, for lack of a better word.
:-)
Comment 3 Hugo Parente Lima 2010-11-25 17:53:36 EET
Released on version 1.0.0~beta1