Qtestlib的鼠标单击方法不起作用
Ui::MainWindow ui;QMainWindow *window1=new QMainWindow;
ui.setupUi(window1);
window1->show();
QTest::keyClick(ui.lineEdit,Qt::Key_1);
QTest::keyClick(ui.lineEdit_2,Qt::Key_2);
QPoint pos;
pos.setX(80);
pos.setY(152);
QTest::mouseClick(ui.pushButton,Qt::LeftButton,0,pos,-1);
页:
[1]