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 24 - QDrag object has no attribute 'start'
: QDrag object has no attribute 'start'
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtGui
: HEAD
: All All
: P5 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2009-08-29 23:32 EEST by Carlos Gonçalves
Modified: 2009-10-14 14:19 EEST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Gonçalves 2009-08-29 23:32:12 EEST
carlos@corenux:~/devel/scm/pyside-examples/examples/draganddrop/draggableicons>
python draggableicons.py
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

Traceback (most recent call last):
  File "draggableicons.py", line 135, in <module>
    sys.exit(app.exec_())
  File "draggableicons.py", line 118, in mousePressEvent
    if drag.start(QtCore.Qt.CopyAction | QtCore.Qt.MoveAction) ==
QtCore.Qt.MoveAction:
AttributeError: 'QDrag' object has no attribute 'start'
Comment 1 Carlos Gonçalves 2009-08-29 23:36:27 EEST
Version is set to HEAD, but let me be more specific:

carlos@corenux:~> rpm -qa python-pyside* boostpythongenerator* libapiextractor*
boostpythongenerator-20090828-2.1
python-pyside-20090828-2.1
libapiextractor0-debuginfo-20090828-4.2
python-pyside-debuginfo-20090828-2.1
python-pyside-devel-20090828-2.1
boostpythongenerator-debugsource-20090828-2.1
boostpythongenerator-debuginfo-20090828-2.1
libapiextractor0-debugsource-20090828-4.2
libapiextractor0-20090828-4.2
Comment 2 Carlos Gonçalves 2009-08-30 12:02:26 EEST
'start' was renamed to 'exec_' in Qt 4.3. Fixed on commit
51b21dbc3706947232deacd6d8c2118b62a76e9b