Kylin/Fluent/qml/Event.qml

16 lines
290 B
QML
Raw Normal View History

2024-08-31 12:32:26 +08:00
import QtQuick
import QtQuick.Controls
import FluentUI
QtObject {
id:control
property string name
signal triggered(var data)
Component.onCompleted: {
FluEventBus.register(control)
}
Component.onDestruction: {
FluEventBus.unregister(control)
}
}