Select a tab of a QTabWidget with mouseClick()
-
Hi,
can someone explain me why I can one time select a tap of the QTabWidget with QTest::mouseClick() and then it's not possible to select an other tab?
@
const int positionXSecond = 180;
const int positionYSecond= 45;
QTest::qWait(2000);// Select the second Tab of the MainWindow
QPoint posSecond = QPoint( positionXSecond , positionYSecond);
QTest::mouseMove ( mw, posSecond , -1 );
QTest::mouseClick( mw->childAt( posSecond ), Qt::LeftButton, Qt::NoModifier, QPoint(), 100 );// does nothing
const int positionXOne = 60;
const int positionYOne = 45;
QPoint posOne= QPoint( positionXOne , positionYOne );
QTest::mouseMove ( mw, posOne, -1 );
QTest::mouseClick( mw->childAt( posOne), Qt::LeftButton, Qt::NoModifier, QPoint(), 100 );
@ -
Have you solved this Question?