Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-117916

Only enabling QtInsightTracker in C++ side only works for MSVC

    XMLWordPrintable

Details

    • Android, Windows
    • 7ee16bd33 (dev), 63433eef3 (6.6), 886a64d94 (6.5), e8afa15fd (tqtc/lts-6.2), 7159a2a23 (tqtc/lts-5.15)

    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.

      Attachments

        1. coffee_mingw.zip
          351 kB
        2. coffee_msvc.zip
          351 kB
        For Gerrit Dashboard: QTBUG-117916
        # Subject Branch Project Status CR V

        Activity

          People

            sapiippo Samuli Piippo
            mikio_hirai Mikio Hirai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes