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

Qt sensors broken on Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 5.10.1
    • Sensors
    • Development environment:

      Mac OS X 10.13.2

      QtCreator 4.5.0

      Qt 5.10.1

      Android SDK 21

      Android NDK r10e

      Architecture armv72

      Tested on Devices with Android 6.0 and 7.0.
    • Android

    Description

      Adding the line "QT += sensors" in .pro file and compiling for Android causes a "WARNING: QApplication was not created in the main() thread." at program startup. This leads into a wrong application directory: QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) returns "/" only.

      This may be related to QTBUG-65820, which has been partially solved only.

      Attachments

        1. AppDataLocation.jpg
          AppDataLocation.jpg
          148 kB
        2. main.cpp
          0.3 kB
        3. mainwindow.cpp
          0.2 kB
        4. mainwindow.h
          0.3 kB
        5. mainwindow.ui
          0.5 kB
        6. SensorsTest.pro
          0.2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            bartlomiejmoskal Bartlomiej Moskal
            kig Fred Kasulke
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes