accessing a PySide QtCore.Property fails in Python
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyside (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
The attached test program should output:
PySide expect 2: 2
PyQt4 expect 2: 2
but instead it outputs:
PySide expect 2: <Property object at 0x17475c8>
PyQt4 expect 2: 2
That is, in PySide, when accessing the value of a Python object's property that is created with QtCore.Property, it is returning the Property instance rather than the value.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: python-pyside 1.1.0-1
ProcVersionSign
Uname: Linux 3.2.0-30-generic x86_64
NonfreeKernelMo
ApportVersion: 2.0.1-0ubuntu13
Architecture: amd64
Date: Tue Sep 11 14:55:24 2012
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Beta amd64 (20100901.1)
PackageArchitec
ProcEnviron:
TERM=xterm
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: pyside
UpgradeStatus: Upgraded to precise on 2012-06-06 (96 days ago)