Qt 我如何为qml编写一个单元测试来点击我之前制作的按钮
我写了一个按钮,如: 长方形{Qt 我如何为qml编写一个单元测试来点击我之前制作的按钮,qt,unit-testing,qml,Qt,Unit Testing,Qml,我写了一个按钮,如: 长方形{ id:loginButton Rectangle { MouseArea{ } } Property alias lButtonTest:lButton LoginButton{ id:lButton } } 在要创建登录页面的页面中: 长方形{ id:loginButton Rectangle { MouseArea{ } } Property alia
id:loginButton
Rectangle {
MouseArea{
}
}
Property alias lButtonTest:lButton
LoginButton{
id:lButton
}
}
在要创建登录页面的页面中:
长方形{
id:loginButton
Rectangle {
MouseArea{
}
}
Property alias lButtonTest:lButton
LoginButton{
id:lButton
}
}
在Testcase中的函数中:
鼠标点击(loginTestPage.lButtonTest)
但这不是工作。鼠标单击不执行。请提供,而不是伪代码