woskov
17th March 2016, 12:47
Hi
I have 2 problems with testing my gui
1) while trying :
QTestEventList list1;
list1.addMouseMove(pt);// pt is point in the button- yes I see cursour on it
list1.addMouseClick(Qt::LeftButton);
list1.simulate(&mw);// mw is main window of my app
not working but if I do :
QTest::mouseClick(mw.ui->button,Qt::LeftButton); work's fine( function create's dialog ... )
2)
while :
QTest::moseMove(mw.window(),pt1); //pt1 is point pt in global scope
QTest::mouseClick(mw.ui->treeView,Qt::LeftButton,0,pt); //pt is point in the view - I had checked
nothing happens(it should change direction of sorting or check all row - if it's on record) - sorry - coursor only move to position
im using: windows 10 32 bit , Qt 5.5.1 +mingw32
I have 2 problems with testing my gui
1) while trying :
QTestEventList list1;
list1.addMouseMove(pt);// pt is point in the button- yes I see cursour on it
list1.addMouseClick(Qt::LeftButton);
list1.simulate(&mw);// mw is main window of my app
not working but if I do :
QTest::mouseClick(mw.ui->button,Qt::LeftButton); work's fine( function create's dialog ... )
2)
while :
QTest::moseMove(mw.window(),pt1); //pt1 is point pt in global scope
QTest::mouseClick(mw.ui->treeView,Qt::LeftButton,0,pt); //pt is point in the view - I had checked
nothing happens(it should change direction of sorting or check all row - if it's on record) - sorry - coursor only move to position
im using: windows 10 32 bit , Qt 5.5.1 +mingw32