Details
Description
Only calling tracker.setEnabled(true); on C++ side and not calling InsightTracker.enabled = true; in QML side causes an odd behavior; newly occured events are sent to the cloud only when the Kit is MSVC. Actually, the new events are not even saved to the database on the Kits other than MSVC.
I tested this behavior with the kits below (My host is Windows11);
1. Android Qt 6.5.3 Clang arm64-v8a with the project(https://filesender.qt.io/?s=download&token=bd2e0e03-bad8-437c-a92b-3a5a19ab6888).
2. Desktop Qt 6.5.3 MinGW 64-bit with the attached project(coffee_mingw.zip).
3. Desktop Qt 6.5.3 MSVC2019 64-bit with the attached project(coffee_msvc.zip).
For 1(Android) and 2(MinGW), the behavior was observed that even though the "Cappuccino" button in the left column in the first screen was clicked, the event was not saved to the database, therefore, these events were not sent to the cloud.
Whereas in 3(MSVC), the events were properly saved to the database and then sent to the cloud.
By having Component.onCompleted: InsightTracker.enabled = true; in main.qml, both Android and MinGW started saving and sending the events to the cloud just like MSVC.