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 706 - dataChanged signal raise an incorrect TypeError
: dataChanged signal raise an incorrect TypeError
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: PySide
: 1.0.0 rc1
: All All
: P2 normal
Assigned To: Hugo Parente Lima
:
:
:
  Show dependency treegraph
 
Reported: 2011-03-01 14:25 EET by Hereldar
Modified: 2011-04-01 23:16 EEST (History)
10 users (show)

See Also:


Attachments
Signal test (11.73 KB, text/plain)
2011-03-01 14:25 EET, Hereldar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hereldar 2011-03-01 14:25:31 EET
Created attachment 275 [details]
Signal test

When the dataChanged signal is emitted, a TypeError is raised; but the two
arguments are QModelIndex instances.

Steps to Reproduce:
-------------------

    1) Execute test:

        python DataChangedTest.py

Actual Results:
---------------

    <type 'PySide.QtCore.QModelIndex'>
    True
    <PySide.QtCore.QModelIndex(0,0,0x2aa3b48,TModel(0x2b9b150) )  at 0x27ec710>
    TypeError: Value type used on signal needs to be registered on meta type:
QModelIndex

Expected Results:
-----------------

    The same without the TypeError.

Platform:
---------

    Distribution: Kubuntu 11.04
    KDE S.C.:     4.6.0
    Qt:           4.7.1
    PySide:       1.0.0~rc1-1
    PySide Tools: 0.2.5
Comment 1 Hugo Parente Lima 2011-03-02 19:42:36 EET
Thanks for reporting.

Marking as P2 due to it being such a basic feature.
Comment 2 BenoƮt HERVIER 2011-03-10 19:00:39 EET
I confirm it too on Version: 1.0.0-1maemo1
Comment 3 Hugo Parente Lima 2011-03-16 16:26:39 EET
Fixed in commit:
shiboken/b34bed93928588fef01d39a14626dce8eaf028f9

unit test in:
pyside/a571d9bd9858e251268cd553db0cec1516888fe6
Comment 4 Hugo Parente Lima 2011-04-01 23:16:09 EEST
Closing bug after release of PySide 1.0.1.