diff options
author | Luciano Wolf <luciano.wolf@openbossa.org> | 2010-10-08 18:13:17 -0300 |
---|---|---|
committer | Luciano Wolf <luciano.wolf@openbossa.org> | 2010-10-11 10:35:38 -0300 |
commit | 87c67294301eb53c67e949ff50b991afe24d80c0 (patch) | |
tree | 8e1399074ed417be4e3bb42007951ce27f3f6471 /doc/property.rst | |
parent | ba54f0956e50c9a667ce160c69592d08ce514382 (diff) |
Updating documentation to reflect adoption of wikipages.
Reviewer: Renato Araújo <renato.filho@openbossa.org>
Diffstat (limited to 'doc/property.rst')
-rw-r--r-- | doc/property.rst | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/doc/property.rst b/doc/property.rst deleted file mode 100644 index 88db8d68e..000000000 --- a/doc/property.rst +++ /dev/null @@ -1,44 +0,0 @@ -Use of QProperty in PySide -************************** - -PySide implements the function 'QProperty' which allows to declare properties compatible with QMetaProperties. - - -Using PySide.QProperty() ------------------------- - -The QProperty works like Q_PROPERTY macro, and uses the same arguments. - -QProperty(getFunction, [setFunction], [resetFunction], [Designable], [Scriptable], [Stored], [User]) - - -The example below uses QProperty function to export a property in QMetaObject data. - -:: - - ... - clas MyObject(QObject): - def getX(self): - ... - - def setX(self, value): - ... - - def resetX(self): - ... - - X = QProperty(getX, setX, resetX, True, True, True, True) - - ... - - -The exported property works like native python property on python side. See the example below. - -:: - - ... - o = MyObject() - o.X = 10 - print o.X - ... - |