Im sending my file through wetransfer - to show what effect I want to achieve. Basicly I need to make a presentation in a form of a old book. I would like to have a nice - harry potter - effect - that opening each page reveal all the content - like text, photo gallery, video etc.
It would be perfect if I could have for example an animation which is a button to a photo gallery, or a button to the sound. Right now my problem is that - when I open new spread - I see gallery - which is under an animation/button - I would like to have that gallery to appear with a delay - or even be invisible - until you click on the button.
This can be done using actions.
One more thing - I think - final one. Is it possible to make the animation appear every time you go to the new page ? Right now it only appear once - and stays - I would like to make it appear every time I slide to the next/previous page.
Add this script to the Animation widget:
import QtQuick 2.0
Item {
Connections {
target: pageInfo.page.scriptAdaptor
onEventEntered: {
subItem.member_autoPlayTimer.start()
}
onEventLeaved: {
subItem.currentFrame = 0
}
}
}
See the restart_animation.pma example.
Thanks for the script - but right now - it disappears after showing up - I tried to add it to the previous script - you gave me - but than there is an error. I found another problem - with making button. I have a page with table of contents - and I would like to make them like a button that direct to specified page.
Use this script instead of the last two:
import QtQuick 2.0
Item {
Connections {
target: pageInfo.page.scriptAdaptor
onEventEntered: {
subItem.currentFrame = 1
subItem.member_autoPlayTimer.start()
}
}
Connections {
target: subItem
onCurrentFrameChanged: {
if (subItem.currentFrame == 0)
subItem.currentFrame = subItem.imagesCount - 1
}
}
}
One more question. Is it possible to have a function like - going to the first page of presentation after 5 minutes of no activity ? This presentation that I work on will be on a touchscreen at the expo - and it would be good to have such functionality - so the new user always see the first page of the presentation.
Add this code on the Presentation tab https://docs.promultitouch.com/reference/inspector/presentation_inspector.html#interaction
import QtQuick 2.1
Item {
property bool pageChanging: magazine.isPageChanging
onPageChangingChanged: timer.restart()
Timer {
id: timer
interval: 1000*10
onTriggered: controller.currentPageNumber = 0
}
}