Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.14.2
-
None
Description
Hello,
The following code snippet is chowing the bug : when raising the `TestCase` mouseClick() method, nothing is printed, but when raising the button `clicked` method, "button clicked" is printed.
This seems to be the same with the `TestCase` mouseWheel() method.
// code placeholder import QtQuick 2.0 import QtTest 1.0 import QtQuick.Controls 2.0 TestCase { id: root name: "ClickTest" when: windowShown property Component component_button: Button { onClicked: print("button clicked") } function test_button() { var item = createTemporaryObject(component_button, root); // here, the print is not working mouseClick(item, item.width/2, item.height/2); // here, the print is working item.clicked(); } }