blob: ad2dea365e45771fb06fa66b32c4ebf71f90ac22 (
plain)
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
|
import Qt.labs.presentation 1.0
import QtQuick 2.0
OpacityTransitionPresentation
{
Slide {
id: slide1
title: "Custom Transitions, 1"
centeredText: "The Presentation {} Element has a 'switchSlides(from, to)' function which will be called whenever a transition between slides should take place."
}
Slide {
title: "Custom Transitions, 2"
centeredText:
"Re-implement this function and add your own transition for the slides. "
}
Slide {
title: "Custom Transitions, 3"
content: [
"'from' slide",
" opacity fades out",
" scale increases slightly",
"'to' slide",
" opacity fades in",
" scale increases from small to normal",
"All with a fairly simple ParallelAnimation {}"
]
}
Slide {
title: "Custom Transition, 4"
centeredText: "The transition works whichever way you go...\nLets go back to the beginning..."
}
}
|