I would like to create a delay function in javascript that takes a parameter of amount of time to delay, so that I could use it do introduce delay between execution of javas
you can use QtTest
import QtTest 1.0 import QtQuick 2.9 ApplicationWindow{ id: window TestEvent { id: test } function delay_ms(delay_time) { test.mouseClick(window, 0, 0, Qt.NoButton, Qt.NoModifier, delay_time) } }