Qt Insight - Qt Quick Controls
A Qt Quick Controls application using Qt Insight Tracker.
Running the Example
To run the example from Qt Creator, open the Welcome mode and select the example from Examples. For more information, visit Building and Running an Example.
The example shows how to use Qt Insight Tracker with Qt Quick Controls. Qt Quick Controls can send click events and you can use the attached property InsightCategory.category
to filter those events.
In the example, you can enable the InsighTracker singleton using a switch.
Switch { text: "Enable tracking" id: tracking Layout.alignment: Qt.AlignHCenter checked: InsightTracker.enabled }
You can set a category information to the Quick Controls buttons as an attached property. The button's objectName
is always included in the event details.
Button { text: "disabled category" objectName: "disabled" InsightCategory.category: "disabled" } Button { text: "enabled category" objectName: "enabled" InsightCategory.category: "test" } Button { text: "no category" objectName: "empty" }
You can use the catogories to filter the events.
InsightConfiguration { categories: ["QtQuick.Controls", "test"] }
© 2023 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.