import QtQuick 2.1 import QtQuick.Controls 1.0 Rectangle { id: component Rectangle { x: mouseArea_.containsMouse ? 200 : 0 y: 100 width: 300 height: 100 color: 'blue' Behavior on x { NumberAnimation { duration: 500; } } ComboBox { model: ['will close', 'automaticaly', 'if mouse stand', 'still on button'] z: component.z + 10 } MouseArea { id: mouseArea_ anchors.fill: parent z: component.z + 100 hoverEnabled: true acceptedButtons: Qt.NoButton propagateComposedEvents: true preventStealing: true } } }