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 839 - QTest::touchEvent causes Python crash.
: QTest::touchEvent causes Python crash.
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: PySide
: HEAD
: PC Linux
: P2 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-04-26 16:47 EEST by Anton Chikin
Modified: 2011-05-26 17:04 EEST (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Chikin 2011-04-26 16:47:17 EEST
Hi,

Sorry for filing this bug here - there is no particular category for QtTest.
While using new multitouch test functions from QtTest, I've come across the
issue:

QtTest.QTest.touchEvent(self).press(0, QPoint(100,100))

causes Python crash with core dump.

Firstly I've come across this issue in PyQt and contacted Phil about it. Here
is his answer:
"It looks like QTouchEventSequence has a really dumb API which means it's
unusable in anything other that C++ code. You have to use the instance
immediately - you can't make a copy on the heap to pass around and use
later."

Then I've made the test sample using PySide, and the same thing happend.

Thank you!
Comment 1 Hugo Parente Lima 2011-04-26 20:45:00 EEST
Thanks very much for the info, despite of Phil's declaration I think this
problem needs further investigation by us, so prioritizing the crash as P2.
Comment 2 renato filho 2011-05-03 01:21:38 EEST
fixed on pyside commit:
commit 49ba9c9cd5010e4a4d746a8f5771bf95efb0e14d
Author: Renato Filho <renato.filho@openbossa.org>
Date:   Fri Apr 29 19:15:08 2011 -0300
Comment 3 Anton Chikin 2011-05-03 14:01:23 EEST
Many thanks, Renato!
One useful footnote:
A widget does not receive touch events by default.
self.setAttribute(QtCore.Qt.WA_AcceptTouchEvents) must be set.
Comment 4 renato filho 2011-05-26 17:04:11 EEST
PySide release 1.0.3