SSqt5.2
5th December 2014, 11:07
Hi All,
working with embedded Linux Qt for customizing the swipe gesture for single touch.
I have copied the SwipeGesture_Recongnizer function in my_widget.cpp class file and modified it to operate on single touch only.
"QGestureRecognizer::Result QSwipeGestureRecognizer::recognize(QGesture *state, QObject *, QEvent *event);"
i have copied the above function from this path:
https://qt.gitorious.org/qt/qt/source/4c400ec8e397b4da9898f96c50a702eaa362293d:src/gui/kernel/qstandardgestures.cpp#L42
i have included
#include <QWidget>
#include <QImage>
#include <QtGui>
#include <QGesture>
#include <QLabel>
#include <QGestureRecognizer>
#include <QSwipeGesture> in my file.
for compiling the error is ""
D:\Qt_S_Projects\Qt_Flick1\imagewidget.h:45: error: 'QSwipeGestureRecognizer' has not been declared
QGestureRecognizer::Result QSwipeGestureRecognizer::recognize(QGesture *state,)
Can any one please tell how to customize the SwipeGestureRecognizer function , or files need to be included?
Thanks in advance.
working with embedded Linux Qt for customizing the swipe gesture for single touch.
I have copied the SwipeGesture_Recongnizer function in my_widget.cpp class file and modified it to operate on single touch only.
"QGestureRecognizer::Result QSwipeGestureRecognizer::recognize(QGesture *state, QObject *, QEvent *event);"
i have copied the above function from this path:
https://qt.gitorious.org/qt/qt/source/4c400ec8e397b4da9898f96c50a702eaa362293d:src/gui/kernel/qstandardgestures.cpp#L42
i have included
#include <QWidget>
#include <QImage>
#include <QtGui>
#include <QGesture>
#include <QLabel>
#include <QGestureRecognizer>
#include <QSwipeGesture> in my file.
for compiling the error is ""
D:\Qt_S_Projects\Qt_Flick1\imagewidget.h:45: error: 'QSwipeGestureRecognizer' has not been declared
QGestureRecognizer::Result QSwipeGestureRecognizer::recognize(QGesture *state,)
Can any one please tell how to customize the SwipeGestureRecognizer function , or files need to be included?
Thanks in advance.