[PyQt] Gesture programming in PyQt

Phil Thompson phil at riverbankcomputing.com
Tue Jan 10 18:40:22 GMT 2012


On Tue, 10 Jan 2012 19:28:09 +0100, Detlev Offenbach
<detlev at die-offenbachs.de> wrote:
> Am Montag, 9. Januar 2012, 22:17:45 schrieb Phil Thompson:
>> On Mon, 09 Jan 2012 19:11:18 +0100, Detlev Offenbach
>> 
>> <detlev at die-offenbachs.de> wrote:
>> > Am Montag, 9. Januar 2012, 09:58:39 schrieb Phil Thompson:
>> >> On Sun, 08 Jan 2012 18:05:52 +0100, Detlev Offenbach
>> >> 
>> >> <detlev at die-offenbachs.de> wrote:
>> >> > Am Samstag, 7. Januar 2012, 18:31:16 schrieb Phil Thompson:
>> >> >> On Sat, 7 Jan 2012 15:33:08 +0100, Detlev Offenbach
>> >> >> 
>> >> >> <detlev at die-offenbachs.de> wrote:
>> >> >> > Hi Phil,
>> >> >> > 
>> >> >> > can you test my little test script on your side? I tried it
>> >> >> > over
>> >> >> > here
>> >> >> 
>> >> >> with
>> >> >> 
>> >> >> > Python 3.2.2, Qt 4.7.4 and latest released sip/PyQt.
>> >> >> 
>> >> >> What is it supposed to do?
>> >> >> 
>> >> >> Phil
>> >> > 
>> >> > I used it to get some know how in gesture programming. The custom
>> >> 
>> >> gesture
>> >> 
>> >> > should register swipes using the touchpad of e.g. a MacBook. I
>> 
>> couldn't
>> 
>> >> > get it
>> >> > working because it crashed when the custome gesture recognizer is
>> >> > registered.
>> >> > The script itself doesn't do anything useful except printing some
>> 
>> info
>> 
>> >> > about
>> >> > the gesture being handled.
>> >> 
>> >> So what do I have to do to test it?
>> > 
>> > Just start it and perform some swipes on the touchpad. As I said, for
>> > me
>> > it
>> > even failed starting up.
>> 
>> What touchpad?
> 
> E.g. the touchpad of a MacBook.

I know ;), but if you could see my development environment you would
notice a complete absence of touchpads.

>> For me it starts up and displays the "Testing Gestures" text. I quit it
>> with the close button.
> 
> That means, I have to check my installation. What versions did you test
it 
> with (Qt, PyQt4)?

Current snapshots (including the fix to QGestureRecognizer.create()) and
Qt v4.8.

Phil


More information about the PyQt mailing list