import QtQuick 1.1 Item { anchors.fill: parent function hide() { console.log("Hiding interface") prev.visible = false next.visible = false chooser.visible = false uiTimer.stop() } function show() { console.log("Showing interface") prev.visible = true next.visible = true chooser.visible = true uiTimer.start() } Rectangle { id: prev visible: false width: parent.width * 0.15 anchors.left: parent.left anchors.top: parent.top anchors.bottom: parent.bottom color: "red" opacity: 0.05 MouseArea { anchors.fill: parent onClicked: {mainWindow.prev(); uiTimer.restart()} } } Rectangle { id: next visible: false width: parent.width * 0.15 anchors.right: parent.right anchors.top: parent.top anchors.bottom: parent.bottom color: "red" opacity: 0.05 MouseArea { anchors.fill: parent onClicked: {mainWindow.next(); uiTimer.restart()} } } Chooser { id: chooser visible: false model: items onClicked: {mainWindow.select(idx); uiTimer.restart()} } }