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 897 - QObject.property() and QObject.setProperty() methods fails for user-defined properties
: QObject.property() and QObject.setProperty() methods fails for user-defined p...
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtCore
: HEAD
: PC Linux
: P3 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-06-23 18:36 EEST by Hereldar
Modified: 2011-07-22 22:12 EEST (History)
9 users (show)

See Also:


Attachments
Properties test (546 bytes, text/x-python)
2011-06-23 18:36 EEST, Hereldar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hereldar 2011-06-23 18:36:42 EEST
Created attachment 353 [details]
Properties test

When the property 'x' is defined using `Property` for the class 'a' and his
subclass 'b' tries to access to the property using `b.property('x')` or
`b.setProperty('x', ...)` this message appears in the console: "Invalid
property: 'x'."

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

    1) Execute the attached test:

        python test.py

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

    Bilbo
    Invalid property: name_.

    Invalid property: name_.
    True
    Bilbo
    Invalid property: name_.



    True
    objeto

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

    Bilbo
    Bilbo
    True
    Bolsón
    Bolsón


    True
    objeto

Platform:
---------

    Distribution: Kubuntu 11.04
    KDE S.C.:     4.6.2
    Qt:           4.7.2
    PySide:       1.0.3
    PySide Tools: 0.2.9
Comment 1 Hugo Parente Lima 2011-06-27 23:25:16 EEST
Thanks for the report.
Comment 2 renato filho 2011-06-28 22:14:05 EEST
fixed on pyside commit:

commit 10f88e23f70f3fce4f90e143cf3151f7a5d84020
Author: Renato Filho <renato.filho@openbossa.org>
Date:   Tue Jun 28 11:40:33 2011 -0300
Comment 3 Hugo Parente Lima 2011-07-18 21:30:36 EEST
*** Bug 933 has been marked as a duplicate of this bug. ***
Comment 4 renato filho 2011-07-22 22:12:52 EEST
release 1.0.5