I'm trying to propagate the MouseArea signals to a parent object, but using MouseEvent as the parameter type causes an import error.
import QtQuick 2.0
import org.kde.plasma.core 2.0
Rectangle {
id: linkRect
signal clicked(MouseEvent mouse)
ToolTipArea {
id: tooltip
anchors.fill: parent
MouseArea {
id: mouseArea
anchors.fill: parent
onClicked: linkRect.clicked(mouse)
}
}
}
Use the var
type like this:
signal clicked(var mouse)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With