//MainPage.qml
Button{
id: pushI
text: qsTr("录音")
//onClicked: label.visible = true
MouseArea
{
anchors.fill: parent
MyItem { id: inputA}
onPressed:
{
inputA.on_pressed()//my c++ class method
}
onReleased:
{
inputA.on_released()//my c++ class method
}
}
}
$onClicked$ 属性可以,但是我有新闻发布流程,怎么办?