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 179 - QMaemo5ValueButton.setPickSelector() takes ownership of argument
: QMaemo5ValueButton.setPickSelector() takes ownership of argument
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtMaemo5
: 0.2.3
: All All
: P5 normal
Assigned To: renato filho
: http://qt.nokia.com/doc/qt-maemo-4.6/...
:
:
  Show dependency treegraph
 
Reported: 2010-03-02 10:53 EET by Anderson Lizardo
Modified: 2010-06-07 09:26 EEST (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anderson Lizardo 2010-03-02 10:53:16 EET
According to the QMaemo5ValueButton documentation, setPickSelector() transfers
the pick selector ownership to the value button. This requires adding something
like this to the QtMaemo5 typesystem (untested):

    <modify-function signature="setPickSelector(QMaemo5AbstractPickSelector*)">
      <modify-argument index="1">
        <parent index="this" action="add"/>
      </modify-argument>
    </modify-function>

Test case that triggers a segfault:

from PySide import QtGui, QtMaemo5
app = QtGui.QApplication([])
pickselector = QtMaemo5.QMaemo5ListPickSelector()
button = QtMaemo5.QMaemo5ValueButton("test")
button.setPickSelector(pickselector)
del pickselector
print button.pickSelector()
Comment 1 renato filho 2010-05-31 17:56:24 EEST
Fixed on commit:

commit 3a79f868d1830e759c17d3f0e3dc176cb245d010
Author: renato <renato.filho@openbossa.org>
Date:   Mon May 31 17:33:13 2010 -0300
Comment 2 renato filho 2010-06-07 09:26:38 EEST
released 0.3.2.