Results 1 to 2 of 2

Thread: QTouchEvent and State Machine Framework

  1. #1
    Join Date
    Sep 2010
    Posts
    15
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default QTouchEvent and State Machine Framework

    Hi Everyone,

    I am trying to manage touch events with Qt State Machine Framework.

    I can associate a tourch event with:
    QEventTransition *releaseTransition = new QEventTransition(button, QEvent::TouchEvent);
    releaseTransition->setTargetState(s2);
    s3->addTransition(releaseTransition);.

    After that I would like to know what is the exact point that generated the touchevent.

    Please, could someone help me.

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: QTouchEvent and State Machine Framework

    The actual touch event contains a list of points.

Similar Threads

  1. State machine inside a QWidget
    By leoalvesmachado in forum Newbie
    Replies: 10
    Last Post: 4th August 2010, 18:36
  2. State machine implementation
    By yyiu002 in forum Qt Programming
    Replies: 1
    Last Post: 28th June 2010, 04:57
  3. How to get this Qt state machine to work?
    By blukske in forum Qt Programming
    Replies: 0
    Last Post: 1st April 2010, 10:15
  4. How to design a state machine in face of non-blocking I/O?
    By piotr.dobrogost in forum Qt Programming
    Replies: 26
    Last Post: 14th August 2009, 19:48
  5. Qt State Machine Examples don't compile
    By vitalyx in forum Newbie
    Replies: 0
    Last Post: 4th April 2009, 14:19

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.