Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-1893

DeviceInfo.startBatteryLevelChanged() not functioning as spesified in SystemInfo 1.1 QML Plug-in documentation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 1.2.x
    • 1.1.2
    • None
    • Windows Vista Home Premium SP2
      See Components.xml for the SDK environment
      Simulator Qt for MinGW 4.4 (Qt SDK) target

    Description

      DeviceInfo element behaves like in Mobility 1.2 although 1.1 plug-in imported. See code below:


      import QtQuick 1.0
      import com.nokia.symbian 1.0
      import QtMobility.systeminfo 1.1

      Page {
      id: mainPage

      DeviceInfo {
      id: deviceinfo

      Component.onCompleted:

      { // below doesn't work with although it should work with QtMobility.SystemInfo 1.1? // deviceinfo.startBatteryLevelChanged(); // this works, although it shouldn't as it's the new property added in QtMobility 1.2 deviceinfo.monitorBatteryLevelChanges = true }

      onBatteryLevelChanged:

      { progressbar1.value = batteryLevel }

      }

      Attachments

        Issue Links

          Activity

            People

              satu.m.makela satu makela
              ekimmo Kimmo Eklund
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: