import QtQuick 2.5 import QtQuick.Window 2.2 import QtQuick.Controls 1.2 import QtMultimedia 5.4 ApplicationWindow { id: window visible: true width: 640 height: 960 MouseArea { anchors { fill: parent } onClicked: timer.running = !timer.running } ComboBox { id: combox anchors { centerIn: parent } model: 7 } Timer { id: timer repeat: true interval: 1500 onTriggered: { if (!combox.__popup.__popupVisible) { combox.__popup.popup() return } if (combox.__popup.__popupVisible) combox.__popup.__dismissMenu() } } }