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

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 1.1.2
    • Fix Version/s: 1.2.x
    • Labels:
      None
    • Environment:
      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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes