import QtQuick
import QtQuick.Controls

Item {
    id: rootItem
    width: 400
    height: 300

    Component.onCompleted: {
        // Inspect loopToGo
        if (loopToGo) {
            console.log("loopToGo Properties:");
            for (var propertyName in loopToGo) {
                console.log("  - " + propertyName + ": " + typeof loopToGo[propertyName]); // Include typeof for more info
            }

            // If loopToGo has methods (functions), you can try calling them with try/catch:
            if (typeof loopToGo.someMethod === 'function') {
                try {
                    var result = loopToGo.someMethod("argument"); // Replace "someMethod" and "argument"
                    console.log("  - Result of someMethod: " + result);
                } catch (e) {
                    console.warn("  - Error calling someMethod: " + e);
                }
            }
        } else {
            console.warn("loopToGo is not available in QML context.");
        }


    }
}
