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 526 - Change in Behaviour for QByteArray implicit conversion to QString between releases
: Change in Behaviour for QByteArray implicit conversion to QString between rel...
Status: CLOSED INVALID
Product: PySide
Classification: Unclassified
Component: PySide
: 1.0.0 beta1
: All All
: P3 trivial
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-12-04 08:28 EET by genjix
Modified: 2010-12-20 11:26 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 genjix 2010-12-04 08:28:01 EET
Under Linux (installed using PySide repos) and old 0.7.2 on Win 7 (iirc, I
can't remember exactly the numbers) I used to have:

blaa.setStyleSheet(loadStyleSheetFile(filename))

Under Windows 7, it was working but I uninstalled the old PySide and installed
the latest packages.

PySide-1.0.0beta1qt471.win32-py2.5.exe [pyside.org]

Now it throws because setStyleSheet accepts QString and loadStyleSheet returns
a QByteArray.

I don't know which behaviour is correct so feel free to close the bug if it's
invalid. However I'm just letting you know that the behaviour changed ;)

Fix:

blaa.setStyleSheet(str(loadStyleSheetFile(filename)))
Comment 1 Hugo Parente Lima 2010-12-06 10:26:19 EET
We know the behavior changed, it changed because if QByteArrays is implicit
convertible to QString will be impossible to choose the correct overload on
some cases, see bug#427 for more info and a example.

Anyway we failed about writing this change in the release announcement.
Comment 2 Hugo Parente Lima 2010-12-20 11:26:13 EET
Closign bugs after release of 1.0.0 beta2.