Bonjour,
après compilation de QT 4.6.2 sous linux, j'ai lancé la compilation de l'exemple gestures;

pour les autres exemples j'execute qmake xx.pro ensuite make

malheureusement pour l'exemple gesture ca n'a pas marché et j'ai la sortie suivante

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
imagewidget.cpp: In constructor 'ImageWidget::ImageWidget(QWidget*)':
imagewidget.cpp:60: error: 'PanGesture' is not a member of 'Qt'
imagewidget.cpp:60: error: 'grabGesture' was not declared in this scope
imagewidget.cpp:61: error: 'PinchGesture' is not a member of 'Qt'
imagewidget.cpp:62: error: 'SwipeGesture' is not a member of 'Qt'
imagewidget.cpp: In member function 'virtual bool ImageWidget::event(QEvent*)':
imagewidget.cpp:70: error: 'Gesture' is not a member of 'QEvent'
imagewidget.cpp:71: error: invalid static_cast from type 'QEvent*' to type 'QGestureEvent*'
imagewidget.cpp: In member function 'bool ImageWidget::gestureEvent(QGestureEvent*)':
imagewidget.cpp:106: error: 'QGesture' was not declared in this scope
imagewidget.cpp:106: error: 'swipe' was not declared in this scope
imagewidget.cpp:106: error: invalid use of incomplete type 'struct QGestureEvent'
imagewidget.h:50: error: forward declaration of 'struct QGestureEvent'
imagewidget.cpp:106: error: 'SwipeGesture' is not a member of 'Qt'
imagewidget.cpp:108: error: 'pan' was not declared in this scope
imagewidget.cpp:108: error: invalid use of incomplete type 'struct QGestureEvent'
imagewidget.h:50: error: forward declaration of 'struct QGestureEvent'
imagewidget.cpp:108: error: 'PanGesture' is not a member of 'Qt'
imagewidget.cpp:110: error: 'QGesture' was not declared in this scope
imagewidget.cpp:110: error: 'pinch' was not declared in this scope
imagewidget.cpp:110: error: invalid use of incomplete type 'struct QGestureEvent'
imagewidget.h:50: error: forward declaration of 'struct QGestureEvent'
imagewidget.cpp:110: error: 'PinchGesture' is not a member of 'Qt'
imagewidget.cpp: In member function 'void ImageWidget::panTriggered(QPanGesture*)':
imagewidget.cpp:119: error: invalid use of incomplete type 'struct QPanGesture'
imagewidget.h:51: error: forward declaration of 'struct QPanGesture'
imagewidget.cpp:120: error: 'GestureStarted' is not a member of 'Qt'
imagewidget.cpp:121: error: 'GestureUpdated' is not a member of 'Qt'
imagewidget.cpp:128: error: invalid use of incomplete type 'struct QPanGesture'
imagewidget.h:51: error: forward declaration of 'struct QPanGesture'
imagewidget.cpp: In member function 'void ImageWidget::pinchTriggered(QPinchGesture*)':
imagewidget.cpp:136: error: incomplete type 'QPinchGesture' used in nested name specifier
imagewidget.cpp:136: error: expected `;' before 'changeFlags'
imagewidget.cpp:137: error: 'changeFlags' was not declared in this scope
imagewidget.cpp:137: error: incomplete type 'QPinchGesture' used in nested name specifier
imagewidget.cpp:138: error: invalid use of incomplete type 'struct QPinchGesture'
imagewidget.h:52: error: forward declaration of 'struct QPinchGesture'
imagewidget.cpp:139: error: invalid use of incomplete type 'struct QPinchGesture'
imagewidget.h:52: error: forward declaration of 'struct QPinchGesture'
imagewidget.cpp:142: error: 'changeFlags' was not declared in this scope
imagewidget.cpp:142: error: incomplete type 'QPinchGesture' used in nested name specifier
imagewidget.cpp:143: error: invalid use of incomplete type 'struct QPinchGesture'
imagewidget.h:52: error: forward declaration of 'struct QPinchGesture'
imagewidget.cpp:146: error: invalid use of incomplete type 'struct QPinchGesture'
imagewidget.h:52: error: forward declaration of 'struct QPinchGesture'
imagewidget.cpp:146: error: 'GestureFinished' is not a member of 'Qt'
imagewidget.cpp: In member function 'void ImageWidget::swipeTriggered(QSwipeGesture*)':
imagewidget.cpp:156: error: invalid use of incomplete type 'struct QSwipeGesture'
imagewidget.h:53: error: forward declaration of 'struct QSwipeGesture'
imagewidget.cpp:156: error: 'GestureFinished' is not a member of 'Qt'
imagewidget.cpp:157: error: invalid use of incomplete type 'struct QSwipeGesture'
imagewidget.h:53: error: forward declaration of 'struct QSwipeGesture'
imagewidget.cpp:157: error: incomplete type 'QSwipeGesture' used in nested name specifier
imagewidget.cpp:158: error: invalid use of incomplete type 'struct QSwipeGesture'
imagewidget.h:53: error: forward declaration of 'struct QSwipeGesture'
imagewidget.cpp:158: error: incomplete type 'QSwipeGesture' used in nested name specifier
Merci d'avance