Is it possible to make a widget (like gallery) appear after specific time?

Is it possible to make a widget (like gallery) appear after specific time (like few seconds) ?

  1. Unselect the widget in the project tree to hide it.
  2. In the Action Editor add the action Show with Delay in milliseconds.
    See the delay.pma example.

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.

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
	}
}
}

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
		}
  	}
}

Back to Flipabit >
Copyright © 2018. Flipabit Team. All rights reserved.