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

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical 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

      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 }

      }

        1. components.xml
          38 kB
          Kimmo Eklund
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes