// Copyright: 2024, Ableton AG, Berlin. All rights reserved. import QtQuick 2.3 import Aqt.StyleSheets 1.0 MouseArea { id: root property bool debug: false anchors.fill: parent onClicked: { mouse.accepted = false; if (!root.debug) { return; } var ancestors = [], pos, component = parent; while (component) { ancestors.push(component); pos = root.mapToItem(component, mouse.x, mouse.y); component = component.childAt(pos.x, pos.y); } console.log("--------- STYLE INFO"); ancestors.forEach(function (component) { if (component.StyleSet) { console.log(component.StyleSet.styleInfo); } }); console.log("--------- END STYLE INFO"); } }